:root {
  --bg-canvas: #161922;
  --bg-surface: #1e2330;
  --bg-elevated: #262c3d;
  --bg-hover: #2f374c;
  --bg-active: #38425b;
  --bg-inset: #12151e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-focus: #6e7bf2;
  --text-primary: #f8fafc;
  --text-secondary: #a3acba;
  --text-muted: #6b778c;
  --accent: #6e7bf2;
  --accent-hover: #828df8;
  --accent-subtle: rgba(110, 123, 242, 0.12);
  --accent-border: rgba(110, 123, 242, 0.32);
  --success: #10b981;
  --success-subtle: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-subtle: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-subtle: rgba(239, 68, 68, 0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-xs: 6px;
  --radius-sm: 11px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --topbar-h: 60px;
  --sidebar-w: 268px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: rgba(22, 25, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.dashboard-active .topbar-inner {
  max-width: none;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  letter-spacing: 0.02em;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(14, 16, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.topnav > a,
.nav-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.topnav > a:hover,
.nav-more-btn:hover,
.nav-more-btn[aria-expanded="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.top-nav-badge {
  position: absolute;
  top: -9px;
  right: -4px;
  background: #10b981;
  color: #042f2e;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  transform: rotate(-6deg);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
  pointer-events: none;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.topnav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 3px;
}

.topnav-deploy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.topnav-deploy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.topnav-deploy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
  flex-shrink: 0;
}

.nav-more-wrap {
  position: relative;
}

.nav-more-chevron {
  transition: transform 0.15s ease;
  opacity: 0.7;
}

.nav-more-btn[aria-expanded="true"] .nav-more-chevron {
  transform: rotate(180deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 540px;
  max-width: calc(100vw - 32px);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 16px;
  z-index: 9999;
}

.nav-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.nav-more-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-more-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 8px 6px;
}

.nav-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.12s ease;
}

.nav-menu-item:hover {
  background: var(--bg-hover);
}

.nav-menu-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-menu-item:hover .nav-menu-icon {
  color: var(--text-primary);
  border-color: var(--border-default);
}

.nav-menu-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.nav-menu-text strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.nav-menu-text small {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-user-wrap {
  position: relative;
}

.top-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.top-user-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.top-user-pill img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
}

.top-user-Chevron {
  font-size: 10px;
  color: var(--text-muted);
}

.top-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 310;
}

.top-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.top-user-dropdown-header img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.top-user-dropdown-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-user-dropdown-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-user-dropdown-meta small {
  font-size: 11px;
  color: var(--text-muted);
}

.top-user-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.top-user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.top-user-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.top-user-dropdown-item.danger {
  color: var(--danger);
}

.top-user-dropdown-item.danger:hover {
  background: var(--danger-subtle);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 22px;
  border-radius: 9999px;
  background: #ffffff;
  color: #050608;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.16);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.top-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.primary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--bg-canvas);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.primary:hover,
.btn-primary:hover {
  opacity: 0.9;
}

.primary:disabled,
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary,
.btn-secondary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.secondary:hover,
.btn-secondary:hover,
.ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-subtle);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
  font-size: 12px;
  font-weight: 500;
}

.delete-button:hover {
  background: rgba(239, 68, 68, 0.2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

body.signed-out .shell {
  display: block;
}

.sidebar {
  width: 276px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 20px 20px 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  position: sticky;
  top: var(--topbar-h);
  overflow: hidden;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
}

.sidebar-top {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-server-picker {
  position: relative;
  width: 100%;
}

.sidebar-server-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.sidebar-server-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-server-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1a1e28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-server-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-server-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-server-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.sidebar-server-current {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-server-chevron {
  font-size: 11px;
  color: #64748b;
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.sidebar-server-trigger[aria-expanded="true"] .sidebar-server-chevron {
  transform: rotate(180deg);
}

.sidebar-server-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 310px;
  max-height: 440px;
  background: #0e1117;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.sidebar-server-popover-head {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#sidebar-server-search {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 12.5px;
  color: #ffffff;
  outline: none;
}

.sidebar-server-popover-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 290px;
}

.sidebar-server-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
  text-align: left;
  transition: all 0.12s ease;
  cursor: pointer;
}

.sidebar-server-opt:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.sidebar-server-opt.active {
  background: rgba(110, 123, 242, 0.16);
  color: #ffffff;
}

.sidebar-server-opt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1e222b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-server-opt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-server-opt-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-server-opt-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.sidebar-server-opt-title span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-server-opt-meta small {
  font-size: 11px;
  color: #64748b;
}

.sidebar-server-opt-check {
  color: #818cf8;
  font-weight: 700;
  font-size: 13px;
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-server-opt-empty {
  padding: 14px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

.sidebar-server-popover-foot {
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
}

.sidebar-server-all-btn {
  width: 100%;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 6px;
  transition: all 0.12s ease;
  cursor: pointer;
}

.sidebar-server-all-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-server-select {
  display: none !important;
}

.sidebar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.sidebar-search {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 32px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.sidebar-search:focus {
  border-color: var(--border-strong);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 6px 8px;
}

.nav-cat-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.nav-cat-toggle:hover {
  color: #94a3b8;
}

.cat-arrow {
  font-size: 10px;
  transition: transform 0.15s ease;
}

.cat-arrow.collapsed {
  transform: rotate(-90deg);
}

.nav-cat-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.nav-cat-items.collapsed {
  display: none;
}

.nav-item,
.feature-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-align: left;
  transition: all 0.16s ease;
  min-height: 38px;
}

.nav-item:hover,
.feature-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.nav-item.active,
.feature-btn.active {
  background: rgba(110, 123, 242, 0.16);
  color: #ffffff;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(110, 123, 242, 0.35);
}

.nav-icon,
.feature-icon {
  width: 26px !important;
  height: 26px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #cbd5e1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  margin-right: 3px;
  transition: all 0.14s ease;
}

.nav-icon svg,
.feature-icon svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon,
.feature-btn:hover .feature-icon,
.feature-btn.active .feature-icon {
  background: rgba(110, 123, 242, 0.22) !important;
  border-color: rgba(110, 123, 242, 0.4) !important;
  color: #ffffff !important;
}

.feature-premium-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
}

.feature-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
}

.feature-group-toggle:hover {
  color: var(--text-secondary);
}

.feature-group.collapsed .feature-group-items {
  display: none;
}

.feature-group.collapsed .group-chevron {
  transform: rotate(-90deg);
}

.feature-group-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.feature-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

.feature-dot.on {
  background: var(--success);
}

.sidebar-user {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-meta strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.content {
  flex: 1;
  min-width: 0;
}

body.dashboard-active .content {
  padding: 28px 32px 80px;
  max-width: 1440px;
}

.lp-wrapper {
  width: 100%;
}

.lp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
}

.lp-hero-header {
  max-width: 820px;
  margin-bottom: 40px;
}

.lp-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.lp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.lp-hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.lp-hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #d5d9e2;
}

.lp-hero-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 660px;
  margin-bottom: 28px;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lp-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.lp-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-metric-item strong {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.lp-metric-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.lp-workbench {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.wb-topbar {
  height: 44px;
  padding: 0 16px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wb-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-window-controls span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.wb-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.wb-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.wb-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.wb-tab.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-default);
}

.wb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.wb-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 470px;
}

.wb-sidebar {
  background: var(--bg-inset);
  border-right: 1px solid var(--border-subtle);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.wb-guild-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.wb-guild-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.wb-guild-meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.wb-guild-meta small {
  font-size: 11px;
  color: var(--text-muted);
}

.wb-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
}

.wb-nav-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.wb-nav-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
}

.wb-nav-state {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
}

.wb-sidebar-foot {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wb-stage {
  padding: 24px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wb-pane {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.wb-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.wb-pane-head h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.wb-pane-head p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.wb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wb-kpi-card {
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wb-kpi-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.wb-kpi-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.wb-kpi-sub {
  font-size: 11.5px;
  color: var(--success);
}

.wb-split-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}

.wb-box {
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wb-box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.wb-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.wb-rule-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.wb-rule-info small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.wb-rule-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb-select {
  height: 28px;
  padding: 0 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}

.wb-toggle {
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background-color 0.15s ease;
}

.wb-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.wb-toggle.on {
  background: var(--success);
}

.wb-toggle.on::after {
  transform: translateX(15px);
}

.wb-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb-audit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 12px;
}

.wb-audit-item code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-hover);
}

.wb-audit-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.lp-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.lp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.lp-section-head-copy {
  max-width: 640px;
}

.lp-section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 8px;
  margin-bottom: 10px;
}

.lp-section-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lp-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.lp-bento-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.lp-bento-7 {
  grid-column: span 7;
}

.lp-bento-5 {
  grid-column: span 5;
}

.lp-bento-6 {
  grid-column: span 6;
}

.lp-bento-head h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}

.lp-bento-head p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.lp-mock-surface {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-audio-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-audio-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-audio-art {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-active);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.lp-audio-meta {
  flex: 1;
  min-width: 0;
}

.lp-audio-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.lp-audio-meta small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.lp-audio-bar {
  height: 4px;
  background: var(--border-default);
  border-radius: 2px;
  overflow: hidden;
}

.lp-audio-bar > span {
  display: block;
  width: 64%;
  height: 100%;
  background: var(--text-primary);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.control {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.control:focus {
  border-color: var(--border-focus);
}

textarea.control {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

.catalog-toolbar .control {
  max-width: 340px;
}

.catalog-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.feature-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.feature-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.14s ease;
}

.feature-category-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
}

.feature-category-tab.active {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-color: var(--text-primary);
}

.feature-category-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.75;
}

.cards,
.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.feature-card {
  background: linear-gradient(180deg, #2b3244 0%, #242a3a 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background-color 0.22s ease;
  cursor: pointer;
}

.feature-card:hover {
  background: linear-gradient(180deg, #323b50 0%, #2a3144 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2px;
}

.feature-card .card-icon,
.card-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: rgba(110, 123, 242, 0.12) !important;
  border: 1px solid rgba(110, 123, 242, 0.28) !important;
  color: #c7d2fe !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.feature-card:hover .card-icon {
  background: rgba(110, 123, 242, 0.2) !important;
  border-color: rgba(110, 123, 242, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.feature-card .card-icon svg,
.card-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2;
  display: block;
}

.card-premium-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(110, 123, 242, 0.12);
  border: 1px solid rgba(110, 123, 242, 0.28);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #a5b4fc;
}

.feature-card small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.feature-card h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.command-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 8px;
}

.command-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.command-row p {
  flex: 1;
  font-size: 12.5px;
  color: var(--text-secondary);
  min-width: 0;
}

.command-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.catalog-more {
  margin-top: 16px;
}

.lp-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lp-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.lp-plan-card.featured {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.lp-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.lp-plan-head h3 {
  font-size: 20px;
  font-weight: 600;
}

.lp-plan-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}

.lp-plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.lp-plan-list li::before {
  content: '✓';
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--success);
}

.lp-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lp-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.lp-faq-item summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.status-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-surface);
}

.status-dot.online { background: var(--success); }
.status-dot.idle { background: var(--warning); }
.status-dot.dnd { background: var(--danger); }

.team-identity h3 {
  font-size: 15px;
  font-weight: 600;
}

.team-handle {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.team-status-line {
  font-size: 12px;
  color: var(--text-secondary);
}

.team-quote {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.site-footer {
  padding: 56px 0 40px;
  background: var(--bg-inset);
  border-top: 1px solid var(--border-subtle);
}

.site-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer-brand p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.site-footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
}

.site-footer-col a:hover {
  color: var(--text-primary);
}

.site-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.server-picker-panel {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 32px 80px;
}

.server-picker-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.server-picker-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-top: 4px;
}

.server-picker-header p {
  font-size: 13.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.server-picker-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.server-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.server-card:hover {
  background: #12151e;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.server-card.is-premium {
  border-color: rgba(110, 123, 242, 0.35);
}

.server-card.is-premium:hover {
  border-color: rgba(110, 123, 242, 0.6);
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.server-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.server-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-details h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f8fafc;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-details p {
  font-size: 12.5px;
  color: #64748b;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-premium {
  background: rgba(110, 123, 242, 0.12) !important;
  border-color: rgba(110, 123, 242, 0.32) !important;
  color: #c7d2fe !important;
  font-weight: 600;
}

.server-edit-btn {
  width: 100%;
  height: 38px;
  border-radius: 7px;
  background: #ffffff !important;
  color: #050608 !important;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  margin-top: auto;
}

.server-edit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
  flex-wrap: wrap;
  gap: 6px;
}

.empty-server-box {
  grid-column: 1 / -1;
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.overview-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-active);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.server-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-title-block h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.overview-title-block p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.overview-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.overview-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-card strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-card small {
  font-size: 12px;
  color: var(--text-secondary);
}

.overview-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.overview-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.overview-panel-head h2 {
  font-size: 15px;
  font-weight: 600;
}

.telemetry-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.telemetry-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.telemetry-row-top span {
  color: var(--text-secondary);
}

.telemetry-row-top strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.progress-track {
  height: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.security-score-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.security-score-badge {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-score-badge strong {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--success);
}

.security-score-badge small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.security-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  flex: 1;
}

.security-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-secondary);
}

.security-check-item.ok {
  color: var(--text-primary);
}

.overview-modules-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.overview-modules-header h2 {
  font-size: 17px;
  font-weight: 600;
}

.editor {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 90px;
}

.editor-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.editor-header-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 720px;
}

.editor-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.editor-back:hover {
  color: var(--text-primary);
}

.editor-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-title-row h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-state-pill {
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.feature-state-pill.on {
  background: var(--success-subtle);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
}

.setting {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.15s ease;
}

.setting:hover {
  border-color: var(--border-default);
}

.setting.setting-switch-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.setting.setting-master-toggle {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.setting.setting-master-toggle.is-enabled {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.32);
}

.setting-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setting-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-help {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

input.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  position: relative;
  outline: none;
  flex-shrink: 0;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

input.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input.switch:checked {
  background: #22c55e !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
}

input.switch:checked::after {
  transform: translateX(20px);
}

input.switch:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.appeals-admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.appeals-admin-switch input.switch,
.appeals-admin-switch input[type="checkbox"] {
  width: 46px !important;
  min-width: 46px !important;
  height: 26px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.appeals-admin-switch span {
  display: inline-block;
  line-height: 1.4;
}

.picker {
  position: relative;
  width: 100%;
}

.picker-trigger {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.picker-trigger:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.picker.open .picker-trigger {
  border-color: var(--accent);
}

.picker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-muted);
}

.picker-label.has-value {
  color: var(--text-primary);
  font-weight: 600;
}

.picker-chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.picker.open .picker-chevron {
  transform: rotate(180deg);
}

.picker-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  max-height: 320px;
  background: #10131a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 100002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.setting.picker-active {
  z-index: 500;
}

.picker-search {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #080a0e;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #ffffff;
  outline: none;
}

.picker-options {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
}

.picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #cbd5e1;
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
  cursor: pointer;
}

.picker-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.picker-option.chosen {
  background: rgba(110, 123, 242, 0.18);
  color: #c7d2fe;
  font-weight: 600;
}

.picker-opt-check {
  color: #818cf8;
  font-weight: 700;
  margin-left: auto;
}

.picker-clear {
  color: #f87171;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.picker-empty {
  padding: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

fieldset.settings-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

fieldset.settings-group > legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 8px;
  margin-left: -4px;
}

.group-help {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: -6px;
}

.empty-note {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 8px 0;
}

.list-entry, .map-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.entry-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.entry-card summary {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.entry-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  align-self: flex-start;
}

.add-button:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.locked-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c7d2fe;
  background: rgba(110, 123, 242, 0.12);
  border: 1px solid rgba(110, 123, 242, 0.28);
  border-radius: 9999px;
  padding: 3px 10px;
  margin-top: 4px;
  align-self: flex-start;
}

.prem-inline-icon,
.premium-logo-icon,
.badge-premium-img,
.premium-badge-icon-img,
.pill-premium img,
.pill-premium-dot img,
img.prem-inline-icon {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  object-fit: contain !important;
  vertical-align: -2px;
  display: inline-block;
  flex-shrink: 0;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.switch span::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.switch input:checked + span {
  background: #22c55e;
  border-color: #16a34a;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
}

.switch input:checked + span::before {
  transform: translateX(20px);
  background: #ffffff;
}

.multi-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.multi-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-primary);
}

.choice-chip strong {
  color: var(--text-muted);
  font-weight: 600;
}

.choice-chip:hover {
  border-color: var(--danger);
}

.multi-options {
  max-height: 190px;
  overflow-y: auto;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
}

.multi-option {
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-option:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.multi-option.selected {
  background: var(--accent-subtle);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.rule-card {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rule-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-field > span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.collection-box,
.collection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-item {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collection-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.savebar {
  position: fixed;
  bottom: 24px;
  left: calc(var(--sidebar-w) + 32px);
  right: 32px;
  max-width: 1376px;
  background: rgba(21, 25, 34, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 150;
  animation: savebarSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#dirty {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

#dirty::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseDot 1.8s ease-in-out infinite;
  display: inline-block;
}

.savebar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hub-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hub-header h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.hub-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hub-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.message-builder-tabs {
  display: flex;
  gap: 6px;
}

.message-builder-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.message-builder-tab.active {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-color: var(--text-primary);
}

.message-builder-workspace {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.message-builder-editor,
.message-preview-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.message-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.message-field-wide {
  grid-column: 1 / -1;
}

.message-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.discord-message {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #313338;
  border-radius: var(--radius-sm);
  color: #dbdee1;
}

.discord-preview-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-message-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discord-message-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.discord-bot-tag {
  background: #5865f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.discord-embed-preview,
.discord-cv2-preview {
  background: #2b2d31;
  border-left: 4px solid var(--embed-accent, #6e7bf2);
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-card,
.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-header,
.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.log-actor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.ai-prompts-aside {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-prompt-btn {
  padding: 10px 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: left;
  transition: border-color 0.14s ease, color 0.14s ease;
}

.ai-prompt-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.ai-chat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.ai-messages {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
}

.ai-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--bg-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.ai-msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 78%;
}

.ai-msg-user {
  flex-direction: row-reverse;
}

.ai-msg-user .ai-msg-bubble {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
}

.ai-form {
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
}

.status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.status.error {
  border-color: var(--danger);
  color: #fca5a5;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .wb-body,
  .lp-bento-grid,
  .overview-workbench-grid,
  .message-builder-workspace,
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .lp-bento-7,
  .lp-bento-5,
  .lp-bento-6 {
    grid-column: span 12;
  }
  .wb-kpi-grid,
  .overview-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topnav {
    display: none;
  }
  .shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .lp-plans-grid,
  .lp-faq-grid,
  .wb-split-grid,
  .wb-kpi-grid,
  .overview-metrics-grid,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .savebar {
    left: 16px;
    right: 16px;
  }
}


.reviews-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.reviews-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-score-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.reviews-score-block strong {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
}

.review-card-stars {
  color: var(--warning);
  letter-spacing: 2px;
  font-size: 13px;
}

.reviews-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-breakdown-row {
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.review-bar {
  height: 6px;
  background: var(--bg-inset);
  border-radius: 999px;
  overflow: hidden;
  display: block;
}

.review-bar i {
  display: block;
  height: 100%;
  background: var(--text-primary);
}

.review-signin-box,
.review-form {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-rating-options {
  display: flex;
  gap: 4px;
}

.rating-star {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 15px;
}

.rating-star.selected {
  color: var(--warning);
  border-color: var(--border-strong);
}

.review-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.review-identity {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-identity strong {
  font-size: 13px;
}

.review-identity small {
  font-size: 11px;
  color: var(--text-muted);
}

.review-card-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.suggestion-card,
.public-changelog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggestion-entry {
  padding: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suggestion-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.hosted-dropzone {
  padding: 32px 20px;
  background: var(--bg-inset);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hosted-dropzone:hover,
.hosted-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

@media (max-width: 960px) {
  .reviews-layout,
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes subtleBorderPulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 255, 255, 0.08);
  }
}

.hero-preview-banner {
  margin: 0 auto 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0d1016;
  overflow: hidden;
  cursor: zoom-in;
  animation: subtleBorderPulse 4.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.hero-preview-banner:hover {
  transform: translateY(-2px);
}

.hero-preview-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.action-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.action-shot-card {
  background: #0e1117;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: subtleBorderPulse 5s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.action-shot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.32);
}

.action-shot-media {
  position: relative;
  overflow: hidden;
  background: #080a0e;
  border-bottom: 1px solid var(--border-subtle);
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
}

.action-shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.action-shot-card:hover .action-shot-media img {
  transform: scale(1.02);
}

.action-shot-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(11, 13, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  pointer-events: none;
}

.action-shot-copy {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-shot-copy h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.action-shot-copy p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}

.image-lightbox-overlay img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
}

.tier-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.tier-compare-card {
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tier-compare-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.tier-compare-card.is-most-chosen {
  border-color: #3b82f6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.tier-compare-card.is-bundle {
  border-color: rgba(110, 123, 242, 0.38);
}

.tier-compare-banner {
  background: #3b82f6;
  color: #ffffff;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
}

.tier-compare-banner.bundle-banner {
  background: #1e2436;
  color: #a5b4fc;
  border-bottom: 1px solid rgba(110, 123, 242, 0.25);
}

.tier-compare-body {
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tier-compare-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.tier-compare-sub {
  font-size: 12.5px;
  color: #8b93a6;
  line-height: 1.45;
  min-height: 36px;
}

.tier-compare-price {
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tier-compare-price strong {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier-compare-price span {
  font-size: 13px;
  color: #7c8599;
  font-weight: 500;
}

.tier-compare-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.tier-compare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.tier-compare-item.included {
  color: #e2e8f0;
}

.tier-compare-item.excluded {
  color: #4b5263;
}

.tier-compare-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.tier-compare-item.included .tier-compare-icon {
  color: #3b82f6;
}

.tier-compare-item.excluded .tier-compare-icon {
  color: #4b5263;
}

.tier-compare-foot {
  padding: 0 24px 24px;
}

.tier-compare-cta {
  width: 100%;
  height: 42px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #13161f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tier-compare-cta:hover {
  background: #1a1f2c;
  border-color: rgba(255, 255, 255, 0.18);
}

.tier-compare-card.is-most-chosen .tier-compare-cta {
  background: #f1f5f9;
  color: #090b10;
  border-color: #ffffff;
  font-weight: 700;
}

.tier-compare-card.is-most-chosen .tier-compare-cta:hover {
  background: #ffffff;
}

.dc-frame {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.dc-window-bar {
  height: 40px;
  padding: 0 16px;
  background: #111214;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dc-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc-window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #3f4147;
}

.dc-window-dots i:nth-child(1) { background: #ed4245; }
.dc-window-dots i:nth-child(2) { background: #fee75c; }
.dc-window-dots i:nth-child(3) { background: #57f287; }

.dc-window-title {
  font-size: 12px;
  font-weight: 600;
  color: #b5bac1;
}

.dc-lvl-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #f47fff;
  background: rgba(244, 127, 255, 0.12);
  border: 1px solid rgba(244, 127, 255, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.dc-main-area {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px;
}

.dc-guild-side {
  background: #2b2d31;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.dc-server-header {
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.dc-boost-gem {
  color: #f47fff;
  font-size: 12px;
}

.dc-header-chev {
  margin-left: auto;
  color: #949ba4;
  font-size: 11px;
}

.dc-side-scroll {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dc-cat-header {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #949ba4;
  padding: 10px 6px 4px;
}

.dc-ch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #949ba4;
}

.dc-ch-row.active {
  background: #404249;
  color: #ffffff;
}

.dc-ch-icon {
  font-size: 15px;
  color: #80848e;
  line-height: 1;
}

.dc-chat-area {
  background: #313338;
  display: flex;
  flex-direction: column;
}

.dc-chat-topbar {
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-top-hash {
  font-size: 18px;
  font-weight: 600;
  color: #80848e;
}

.dc-top-name {
  font-size: 14px;
  font-weight: 700;
  color: #f2f3f5;
}

.dc-top-div {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.dc-top-topic {
  font-size: 12px;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-messages-wrap {
  padding: 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dc-message-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dc-bot-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
}

.dc-message-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dc-message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #f2f3f5;
}

.dc-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.dc-message-time {
  font-size: 11px;
  color: #949ba4;
}

.dc-message-content {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.45;
}

.team-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}

.team-status-beacon {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  background: #747f8d;
}

.team-status-beacon.status-online { background: #23a55a; }
.team-status-beacon.status-idle { background: #f0b232; }
.team-status-beacon.status-dnd { background: #f23f43; }

.team-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-display-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.team-badge-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border);
}

.team-bio {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.team-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.team-presence-box {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.presence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.presence-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.presence-val {
  color: var(--text-secondary);
  font-weight: 500;
}

.presence-custom-row,
.presence-activity-row {
  font-size: 12px;
  color: var(--text-secondary);
}

.team-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.team-btn {
  flex: 1;
}

@media (max-width: 1120px) {
  .tier-compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .action-showcase-grid,
  .team-showcase-grid,
  .tier-compare-grid,
  .dc-main-area {
    grid-template-columns: 1fr;
  }
  .dc-guild-side {
    display: none;
  }
}


@keyframes modalBackdropFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPopScale {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iconPulseWarn {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4), 0 8px 20px rgba(245, 158, 11, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0), 0 12px 28px rgba(245, 158, 11, 0.35);
    transform: scale(1.05);
  }
}

@keyframes savebarSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSmoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.custom-confirm-backdrop,
.custom-unsaved-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: modalBackdropFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-confirm-backdrop.visible,
.custom-confirm-backdrop.active,
.custom-unsaved-modal-overlay.visible,
.custom-unsaved-modal-overlay.active {
  display: flex;
}

.custom-confirm-dialog,
.custom-unsaved-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #181d28 0%, #11151e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-primary, #f1f5f9);
  animation: modalPopScale 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}

.confirm-icon-box,
.custom-unsaved-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 26px;
  margin-bottom: 18px;
  animation: iconPulseWarn 2.4s ease-in-out infinite;
  box-sizing: border-box;
}

.confirm-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: #f59e0b;
}

.custom-confirm-dialog h3,
.custom-unsaved-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.custom-confirm-dialog p,
.custom-unsaved-card p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 380px;
}

.confirm-modal-actions,
.custom-unsaved-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.confirm-btn-cancel,
.unsaved-btn-stay {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.confirm-btn-cancel:hover,
.unsaved-btn-stay:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.confirm-btn-cancel:active,
.unsaved-btn-stay:active {
  transform: translateY(0);
}

.confirm-btn-ok,
.unsaved-btn-leave {
  flex: 1;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.38);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.confirm-btn-ok:hover,
.unsaved-btn-leave:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.55);
  transform: translateY(-1px);
}

.confirm-btn-ok:active,
.unsaved-btn-leave:active {
  transform: translateY(0);
}

.features-category {
  animation: cardSmoothFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.feature-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.server-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

.server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.metric-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .savebar {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }
}

.features-catalog-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.features-catalog-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.catalog-sidebar-search .control {
  width: 100%;
}

.catalog-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.feature-category-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-category-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.feature-category-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.06);
}

.feature-category-tab.active {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: #ffffff;
  font-weight: 600;
}

.feature-category-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-category-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.feature-category-tab.active .feature-category-count {
  background: rgba(110, 123, 242, 0.25);
  color: #c7d2fe;
}

.features-catalog-content {
  min-width: 0;
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.overview-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.overview-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.overview-cat-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.overview-cat-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(110, 123, 242, 0.25);
}

.cat-pill-count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.overview-cat-btn.active .cat-pill-count {
  background: rgba(110, 123, 242, 0.3);
  color: #c7d2fe;
}

@media (max-width: 960px) {
  .features-catalog-layout {
    grid-template-columns: 1fr;
  }
  .features-catalog-sidebar {
    position: static;
  }
  .feature-category-sidebar-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .feature-category-tab {
    width: auto;
  }
}

body.signed-out .topbar {
  position: sticky;
  top: 14px;
  z-index: 500;
  margin: 14px auto 0;
  max-width: 1220px;
  width: calc(100% - 32px);
  height: 58px;
  background: rgba(22, 25, 34, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.brand-mark {
  border-radius: 50% !important;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  font-size: 13px;
  color: #cbd5e1;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.hero-live-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s ease-in-out infinite;
  display: inline-block;
}

.hero-badge-title {
  font-weight: 600;
  color: #ffffff;
}

.hero-badge-sep {
  color: #64748b;
}

.hero-badge-desc {
  color: #94a3b8;
  font-weight: 400;
}

.hero-badge-arrow {
  color: #818cf8;
  font-size: 14px;
}

.hero-gradient-text {
  background: linear-gradient(180deg, #ffffff 25%, rgba(255, 255, 255, 0.38) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0b0e14;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-btn-main:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.35);
  color: #000000;
}

.hero-btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-btn-sub:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.lp-hero {
  position: relative;
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.lp-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(99, 102, 241, 0.05) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.lp-hero-header {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-hero-title {
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

.lp-hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 36px;
  font-weight: 400;
  text-align: center;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.lp-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.lp-metric-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lp-metric-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.lp-metric-item strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.lp-metric-item span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.hero-preview-banner {
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.09);
}

@media (max-width: 768px) {
  body.signed-out .topbar {
    width: calc(100% - 20px);
    margin: 10px auto 0;
  }
  .lp-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
