:root {
  color-scheme: dark;
  --bg: #1f202c;
  --bg-2: #25273a;
  --panel: #2b2e43;
  --panel-2: #313550;
  --panel-3: #3b3f5e;
  --text: #ffffff;
  --muted: #d7d9e7;
  --soft: #aeb3ca;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #9f7cff;
  --accent-2: #c21fff;
  --accent-soft: rgba(159, 124, 255, 0.18);
  --success: #67d8a8;
  --success-soft: rgba(103, 216, 168, 0.18);
  --danger: #ff6b90;
  --danger-soft: rgba(255, 107, 144, 0.18);
  --warning: #ffc86b;
  --warning-soft: rgba(255, 200, 107, 0.18);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1320px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ff;
  --bg-2: #ece7ff;
  --panel: #ffffff;
  --panel-2: #f6f3ff;
  --panel-3: #ece7ff;
  --text: #22253a;
  --muted: #545b78;
  --soft: #737c99;
  --line: rgba(34, 37, 58, 0.09);
  --line-strong: rgba(34, 37, 58, 0.15);
  --accent: #8a62ff;
  --accent-2: #b325f8;
  --accent-soft: rgba(138, 98, 255, 0.14);
  --success: #0f9b67;
  --success-soft: rgba(15, 155, 103, 0.14);
  --danger: #d94b77;
  --danger-soft: rgba(217, 75, 119, 0.14);
  --warning: #b27c19;
  --warning-soft: rgba(178, 124, 25, 0.14);
  --shadow: 0 20px 50px rgba(64, 42, 124, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(159, 124, 255, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #1b1d2b 100%);
  overflow-x: hidden;
}

body.site-protection-active,
body.site-protection-active * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.site-protection-active input,
body.site-protection-active textarea,
body.site-protection-active select,
body.site-protection-active [contenteditable="true"],
body.site-protection-active [contenteditable="plaintext-only"],
body.site-protection-active [data-allow-copy="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.site-protection-lockout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #171825 0%, #0e1018 100%);
}

.site-protection-lockout-card {
  width: min(560px, 100%);
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--danger);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  text-align: center;
}

.landing-vanta-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top right, rgba(159, 124, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #f8f5ff 0%, var(--bg) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  bottom: -14vw;
  height: 24vw;
  min-height: 180px;
  background: #4a4869;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: 0.9;
}

body::after {
  bottom: -20vw;
  height: 26vw;
  min-height: 220px;
  background: #383650;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

:root[data-theme="light"] body::before {
  background: #d8cff8;
}

:root[data-theme="light"] body::after {
  background: #c8bcf0;
}

img {
  display: block;
  max-width: 100%;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1;
  font-weight: 700;
}

p {
  margin: 0;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

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

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.35;
}

:root[data-theme="light"] .page-noise {
  background-image: radial-gradient(rgba(64, 42, 124, 0.06) 0.7px, transparent 0.7px);
}

.eyebrow,
.card-label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted-copy,
.empty-copy,
.warning-meta,
.chart-label,
.chart-value,
.field small,
.guild-copy small,
.hero-copy,
.landing-copy,
.hero-inline-note,
.top-server-copy p,
.journey-step p,
.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

.stack-list {
  display: grid;
  gap: 0.9rem;
}

.status-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.status-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.status-item p {
  margin: 0;
}

.status-item.complete {
  border-color: rgba(46, 204, 113, 0.35);
}

.status-item.warning {
  border-color: rgba(241, 196, 15, 0.35);
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease, border-color 140ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #b79aff 100%);
}

.ghost-button {
  color: var(--text);
  background: #31333b;
  border-color: transparent;
}

:root[data-theme="light"] .ghost-button {
  background: #ece7ff;
}

.danger-button {
  color: #fff;
  background: linear-gradient(135deg, #ff6289 0%, #d93f72 100%);
}

.icon-button {
  width: 54px;
  min-width: 54px;
  padding: 0;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.guild-card:hover,
.tab-button:hover,
.settings-card:hover,
.top-server-card:hover,
.summary-list div:hover {
  transform: translateY(-2px);
}

.primary-button[disabled],
.ghost-button[disabled],
.danger-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.landing-page,
.app-page,
.legal-page {
  padding: 18px 0 100px;
}

.landing-v2-shell,
.dashboard-shell,
.legal-shell,
.verify-shell,
.status-shell {
  width: min(var(--max-width), calc(100% - 34px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-v2-shell,
.dashboard-shell,
.legal-shell {
  display: grid;
  gap: 20px;
}

.landing-v2-topbar,
.dashboard-topbar,
.hero-strip,
.auth-gate,
.panel,
.settings-card,
.tab-sidebar,
.save-dock,
.banner,
.verify-card,
.legal-panel,
.support-panel,
.status-panel,
.stat-card,
.spotlight-card,
.loading-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.landing-v2-topbar,
.dashboard-topbar,
.hero-strip,
.auth-gate,
.panel,
.settings-card,
.tab-sidebar,
.verify-card,
.legal-panel,
.status-panel,
.loading-card {
  border-radius: var(--radius-xl);
}

.save-dock,
.banner,
.stat-card,
.spotlight-card {
  border-radius: var(--radius-lg);
}

.landing-v2-topbar,
.dashboard-topbar,
.hero-strip,
.auth-gate,
.panel,
.settings-card,
.tab-sidebar,
.verify-card,
.legal-panel,
.status-panel {
  padding: 24px;
}

.landing-v2-topbar,
.dashboard-topbar,
.hero-strip,
.server-stage-head,
.settings-card-head,
.panel-head,
.warning-row,
.chart-row,
.toggle-row,
.form-actions,
.section-actions,
.save-dock,
.save-dock-actions,
.hero-strip-meta,
.server-stage-actions,
.topbar-actions,
.guild-card-head,
.landing-v2-footer,
.landing-v2-footer-links,
.landing-v2-actions,
.landing-v2-nav,
.landing-v2-cta,
.spotlight-head,
.top-server-main,
.top-server-meta,
.journey-step,
.landing-user-badge,
.brand-lockup,
.dashboard-brand,
.user-card,
.support-panel-head,
.support-form-actions,
.status-actions,
.verify-meta,
.verify-actions,
.hero-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-v2-topbar,
.dashboard-topbar,
.hero-strip,
.server-stage-head,
.settings-card-head,
.panel-head,
.form-actions,
.save-dock,
.hero-strip-meta,
.server-stage-actions,
.topbar-actions,
.landing-v2-actions,
.landing-v2-footer,
.support-panel-head,
.support-form-actions,
.status-actions,
.spotlight-head {
  justify-content: space-between;
}

.brand-logo-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.dashboard-brand h1 {
  font-size: 1.15rem;
}

.landing-v2-nav a,
.landing-v2-footer-links a {
  font-size: 1rem;
  font-weight: 700;
}

.landing-v2-nav {
  gap: 36px;
}

.landing-v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 40px;
  padding: 28px 10px 10px;
  min-height: 760px;
}

.landing-v2-copy,
.landing-v2-spotlight,
.hero-headline-block,
.journey-steps,
.top-server-grid,
.workspace-shell,
.server-stage,
.workspace-layout,
.split-panels,
.forms-grid,
.stats-grid,
.summary-list,
.verify-card,
.verify-shell,
.status-shell,
.support-form,
.support-messages,
.warning-meta,
.selected-guild-summary,
.guild-card-body {
  display: grid;
  gap: 16px;
}

.landing-v2-copy {
  align-content: center;
  padding: 0 24px 0 8px;
}

.hero-status-row {
  flex-wrap: wrap;
}

.status-dot-chip,
.meta-chip,
.section-state,
.save-dock-pill,
.feature-list span,
.state-pill,
.landing-v2-pills span,
.guild-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel-3);
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
}

.status-dot-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot-chip.is-live,
.state-pill.is-live,
.feature-pills .on,
.section-state.is-saved,
.toast.success {
  color: var(--success);
  background: var(--success-soft);
}

.status-dot-chip.is-warn,
.state-pill.is-warn,
.guild-badges .offline,
.section-state.is-dirty,
.save-dock-pill {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-dot-chip.is-down,
.toast.error,
.status-banner.warning,
.status-banner.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.section-state.is-saving {
  color: var(--accent);
  background: var(--accent-soft);
}

.landing-user-badge,
.user-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--panel-2);
}

.landing-user-avatar,
.avatar,
.avatar.fallback,
.guild-icon img,
.guild-icon-fallback {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.landing-user-avatar,
.avatar,
.guild-icon img {
  object-fit: cover;
}

.landing-user-avatar-fallback,
.avatar.fallback,
.guild-icon-fallback,
.fallback-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 800;
}

.hero-headline-block h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 7vw, 6.2rem);
  line-height: 0.95;
  background: linear-gradient(180deg, #d258ff 0%, #8b2fff 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root[data-theme="light"] .hero-headline-block h1 {
  background: linear-gradient(180deg, #9c2cff 0%, #7e41ff 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-v2-subtitle {
  max-width: 30rem;
  font-size: 1.1rem;
  color: #f1f3fb;
}

:root[data-theme="light"] .landing-v2-subtitle {
  color: var(--muted);
}

.animated-word-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

#animated-focus-word {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.landing-v2-cta {
  flex-wrap: wrap;
}

.landing-v2-cta .tall-button {
  min-width: 240px;
}

.landing-v2-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-v2-spotlight {
  position: relative;
  align-content: space-between;
}

.landing-v2-spotlight::before {
  content: "";
  position: absolute;
  inset: 8% 9% 20% 18%;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50% 50% 48% 52% / 46% 50% 50% 54%;
  z-index: 0;
}

.landing-v2-spotlight::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 160px;
  height: 160px;
  background: #ff5f84;
  transform: rotate(15deg);
  z-index: 0;
}

.spotlight-card {
  position: relative;
  z-index: 1;
  background: rgba(46, 49, 70, 0.92);
  padding: 20px;
}

:root[data-theme="light"] .spotlight-card {
  background: rgba(255, 255, 255, 0.92);
}

.spotlight-head h2 {
  font-size: 1.4rem;
}

.top-server-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-2);
}

.top-server-card.placeholder-card {
  min-height: 124px;
  align-content: center;
}

.top-server-rank,
.journey-step span,
.chart-label,
.chart-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--soft);
}

.top-server-icon-wrap,
.top-server-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.top-server-icon-wrap img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
}

.journey-step {
  align-items: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.journey-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.landing-v2-footer {
  padding: 0 8px;
  color: var(--soft);
}

.dashboard-shell {
  gap: 18px;
}

.dashboard-topbar .dashboard-brand h1 {
  font-size: 1.45rem;
}

.hero-strip h2,
.verify-card h1,
.status-panel h1,
.legal-panel h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-strip h2 {
  margin: 8px 0 6px;
  max-width: 14ch;
}

.auth-gate {
  min-height: 220px;
  align-content: center;
}

.auth-gate-copy {
  max-width: 540px;
  display: grid;
  gap: 12px;
}

.auth-gate h3 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

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

.guild-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-2);
  border: 1px solid transparent;
  cursor: pointer;
}

.guild-card.active,
.guild-card.selected-server {
  border-color: var(--accent);
  background: #383b56;
}

:root[data-theme="light"] .guild-card.active,
:root[data-theme="light"] .guild-card.selected-server {
  background: #efe9ff;
}

.guild-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.guild-card p,
.warning-row p,
.support-message p {
  margin: 0;
}

.guild-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guild-badges .online {
  color: var(--success);
  background: var(--success-soft);
}

.workspace-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
}

.tab-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.tab-sidebar-search {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.tab-search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  outline: none;
}

.tab-search-input:focus {
  border-color: var(--accent);
}

.tab-search-empty {
  font-size: 0.92rem;
}

.tab-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.tab-button[hidden] {
  display: none !important;
}

.tab-button.active {
  background: var(--panel-3);
  border-color: var(--accent);
}

.tab-icon,
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(159, 124, 255, 0.16);
  color: var(--accent);
}

.tab-icon svg,
.section-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tab-panels {
  display: grid;
}

.tab-panel {
  display: none;
  gap: 16px;
}

.tab-panel.active {
  display: grid;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  padding: 22px;
}

.accent-card {
  background: linear-gradient(135deg, rgba(159, 124, 255, 0.18), rgba(194, 31, 255, 0.1)), var(--panel);
}

.stat-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

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

.ticket-builder-layout {
  align-items: start;
}

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

.logs-layout {
  grid-template-columns: 1fr 1fr;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-pills .off,
.meta-chip.subtle {
  color: var(--soft);
}

.settings-card {
  display: grid;
  gap: 12px;
}

.settings-card[data-dirty="true"] {
  border-color: var(--accent);
}

.settings-card-head h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.settings-form,
.warnings-list,
.chart,
.collection-editor,
.collection-row,
.collection-grid,
.inline-entry,
.token-wrap,
.member-tag-editor {
  display: grid;
  gap: 12px;
}

.field,
.fieldset {
  display: grid;
  gap: 8px;
}

.field span,
.fieldset legend {
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.support-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  outline: none;
}

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .support-form textarea {
  background: #f7f4ff;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.support-form textarea:focus {
  border-color: var(--accent);
}

.field textarea,
.support-form textarea {
  min-height: 120px;
  resize: vertical;
}

.toggle-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel-2);
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-chip {
  position: relative;
}

.checkbox-chip input {
  position: absolute;
  opacity: 0;
}

.checkbox-chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid transparent;
}

.checkbox-chip input:checked + span {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.chart-bar-shell {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: var(--panel-3);
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.warning-row,
.collection-row,
.summary-list div {
  padding: 16px;
  border-radius: 16px;
  background: var(--panel-2);
}

.warning-row {
  align-items: flex-start;
}

.warning-meta {
  gap: 4px;
  text-align: right;
  font-size: 0.84rem;
}

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

.anti-nuke-grid {
  grid-template-columns: 1.4fr 0.8fr 1fr;
}

.inline-entry {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.compact-button {
  min-height: 42px;
  padding: 0 14px;
}

.token-wrap {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
}

.ticket-preview-shell,
.ticket-overview-shell {
  display: grid;
  gap: 14px;
}

.ticket-overview-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 92%, transparent), var(--panel-2));
  border: 1px solid var(--line-strong);
}

.ticket-overview-card strong {
  display: block;
  margin-bottom: 6px;
}

.ticket-overview-card p {
  color: var(--soft);
}

.discord-preview-card {
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    linear-gradient(180deg, #20232b 0%, #171a21 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.discord-preview-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.discord-preview-meta strong {
  display: block;
}

.discord-preview-meta small {
  display: block;
  color: #aab4c3;
}

.discord-embed {
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.discord-embed h4 {
  font-size: 1.05rem;
}

.discord-embed p {
  color: #d9e2ee;
  line-height: 1.6;
}

.discord-embed-fields {
  display: grid;
  gap: 10px;
}

.discord-embed-field {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.discord-embed-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #aab4c3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.discord-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #3ba55d;
  color: white;
  font-weight: 700;
}

.ticket-form-groups {
  display: grid;
  gap: 18px;
}

.ticket-form-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 92%, transparent), var(--panel-2));
  border: 1px solid var(--line-strong);
}

.ticket-form-group header {
  display: grid;
  gap: 6px;
}

.ticket-form-group header p {
  color: var(--soft);
}

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

.ticket-empty {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel-2);
  color: var(--soft);
}

.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--panel-2);
}

.token-chip strong {
  color: var(--danger);
}

.status-banner {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-2);
}

.status-banner.success {
  color: var(--success);
  background: var(--success-soft);
}

.save-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 40;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  padding: 16px 18px;
}

.save-dock-copy {
  display: grid;
  gap: 4px;
}

.save-dock-copy p,
.save-dock-copy strong {
  margin: 0;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100% - 24px));
}

.toast {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel);
}

.banner {
  padding: 16px 18px;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(16, 17, 28, 0.72);
}

.loading-card {
  width: min(360px, calc(100% - 24px));
  padding: 28px;
  text-align: center;
}

.loading-card h2 {
  margin: 18px 0 8px;
  font-size: 1.5rem;
}

.spinner-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid rgba(159, 124, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.status-shell {
  max-width: 940px;
  padding-top: 28px;
}

.verify-shell {
  max-width: 760px;
  padding-top: 28px;
}

.verify-card,
.legal-panel,
.status-panel {
  display: grid;
  gap: 18px;
}

.verify-meta,
.verify-actions,
.status-actions {
  flex-wrap: wrap;
}

.turnstile-shell {
  min-height: 68px;
}

.dashboard-access-gate {
  margin-bottom: 22px;
}

.legal-shell {
  max-width: 940px;
}

.legal-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.support-shell {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  width: min(420px, calc(100% - 24px));
}

.support-panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
}

.support-messages {
  overflow: auto;
  padding-right: 4px;
}

.support-message {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-2);
}

.support-message strong,
.support-message p {
  margin: 0;
}

.support-message p {
  margin-top: 6px;
  white-space: pre-wrap;
}

.support-message.user,
.support-toggle-button.is-active {
  background: var(--accent-soft);
}

.support-thinking p {
  color: var(--muted);
}

.landing-hero-illustration {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: stretch;
  width: min(100%, 760px);
  margin: 0 auto;
}

.landing-feature-band,
.landing-highlight-band {
  display: grid;
  gap: 18px;
}

.landing-section-title {
  max-width: 32rem;
}

.landing-section-title h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.landing-feature-grid,
.landing-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-feature-card,
.landing-highlight-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.landing-feature-card h3,
.landing-highlight-card h3 {
  font-size: 1.3rem;
  margin: 14px 0 10px;
}

.landing-feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.landing-highlight-card img {
  width: min(100%, 180px);
  margin: 0 auto 10px;
}

.landing-wide-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.landing-wide-panel img {
  width: min(100%, 420px);
  margin: 0 auto;
}

.landing-wide-panel-copy {
  display: grid;
  gap: 14px;
}

.landing-wide-panel-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.is-spinning {
  position: relative;
}

.is-spinning::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(159, 124, 255, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wordFlip {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .landing-v2-hero,
  .workspace-layout,
  .split-panels,
  .logs-layout,
  .ticket-stats-grid,
  .ticket-form-grid,
  .guild-grid,
  .collection-grid,
  .landing-feature-grid,
  .landing-highlight-grid,
  .landing-wide-panel {
    grid-template-columns: 1fr;
  }

  .tab-sidebar {
    position: relative;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .landing-v2-shell,
  .dashboard-shell,
  .legal-shell,
  .verify-shell,
  .status-shell {
    width: min(100%, calc(100% - 18px));
  }

  .landing-v2-topbar,
  .dashboard-topbar,
  .hero-strip,
  .auth-gate,
  .panel,
  .settings-card,
  .tab-sidebar,
  .verify-card,
  .legal-panel,
  .status-panel,
  .spotlight-card,
  .landing-feature-card,
  .landing-highlight-card,
  .landing-wide-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .landing-v2-topbar,
  .landing-v2-actions,
  .landing-v2-nav,
  .landing-v2-cta,
  .landing-v2-footer,
  .landing-v2-footer-links,
  .dashboard-topbar,
  .hero-strip,
  .server-stage-head,
  .settings-card-head,
  .panel-head,
  .warning-row,
  .chart-row,
  .toggle-row,
  .form-actions,
  .section-actions,
  .save-dock,
  .save-dock-actions,
  .hero-strip-meta,
  .server-stage-actions,
  .topbar-actions,
  .guild-card-head,
  .status-actions,
  .spotlight-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-v2-nav {
    gap: 16px;
  }

  .discord-preview-header,
  .discord-preview-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-v2-copy {
    padding: 0;
  }

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

  .hero-headline-block h1 {
    max-width: 100%;
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .landing-v2-subtitle {
    max-width: 100%;
  }

  .landing-v2-cta .tall-button,
  .primary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .warning-meta {
    text-align: left;
  }

  .save-dock,
  .toast-stack {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .save-dock {
    transform: none;
  }

  .support-shell {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: min(100%, calc(100% - 20px));
  }
}

.landing-template-page {
  background:
    radial-gradient(circle at top right, rgba(159, 124, 255, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(24, 26, 34, 0.86) 0%, rgba(24, 26, 34, 0.92) 100%);
}

.landing-template-page .landing-v2-shell {
  gap: 34px;
}

.landing-template-page .landing-template-topbar,
.landing-template-page .landing-template-section,
.landing-template-page .landing-template-server-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.landing-template-page::before {
  background: rgba(77, 78, 97, 0.9);
}

.landing-template-page::after {
  background: rgba(57, 58, 75, 0.95);
}

.landing-template-page .status-dot-chip,
.landing-template-page .meta-chip,
.landing-template-page .state-pill,
.landing-template-page .landing-template-pills span,
.landing-template-page .guild-badges span,
.landing-template-page .top-server-rank {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.landing-template-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 0 6px;
}

.landing-template-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.landing-template-logo .brand-logo-image {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.landing-template-logo-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.landing-template-logo-copy strong {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.landing-template-logo-copy span {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.landing-template-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.landing-template-nav a {
  font-size: 1.1rem;
  font-weight: 700;
}

.landing-template-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-outline-button {
  min-height: 56px;
  padding: 0 34px;
  border-width: 2px;
  background: transparent;
  border-radius: 10px;
}

.landing-template-page .ghost-button.landing-outline-button {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-template-page .primary-button.landing-outline-button {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.landing-template-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 48px;
  min-height: 780px;
}

.landing-template-copy {
  display: grid;
  gap: 24px;
  align-content: center;
}

.landing-template-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-template-headline {
  display: grid;
  gap: 18px;
}

.landing-template-user {
  width: fit-content;
}

.landing-template-page #landing-hero-title {
  max-width: 9ch;
  font-size: clamp(4rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.landing-template-page #landing-hero-title.is-compact {
  max-width: 13ch;
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  line-height: 0.96;
}

.landing-template-subtitle {
  max-width: 22ch;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: #f2f2f7;
}

.landing-template-word-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.landing-template-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.landing-cta-button {
  min-width: 230px;
  min-height: 64px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.landing-template-page .primary-button.landing-cta-button {
  background: linear-gradient(135deg, #a887ff 0%, #8f6eff 100%);
  color: #fff;
}

.landing-template-page .ghost-button.landing-cta-button {
  background: #31333b;
  color: #fff;
}

.landing-template-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-template-pills span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.landing-template-illustration-wrap {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.landing-template-illustration-wrap::before {
  content: none;
}

.landing-template-illustration-wrap::after {
  content: none;
}

.landing-template-illustration {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
}

.landing-template-section {
  display: grid;
  gap: 18px;
  padding: 0;
}

.landing-template-live-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  gap: 18px;
}

.landing-template-live-card {
  background: rgba(42, 45, 66, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  border-radius: 0;
}

.landing-template-live-card h3 {
  margin: 8px 0 12px;
  font-size: 1.4rem;
}

.landing-template-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.landing-template-section-header {
  display: grid;
  gap: 8px;
  max-width: 36rem;
}

.landing-template-section-header h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.landing-template-feature-grid,
.landing-template-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-template-feature-card,
.landing-template-stat-card {
  background: #2a2d42;
  border-radius: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.landing-template-feature-card h3,
.landing-template-stat-card h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
}

.landing-template-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: rgba(159, 124, 255, 0.2);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.landing-template-stat-card img {
  width: min(100%, 160px);
  margin: 0 auto 10px;
}

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

.landing-template-server-grid .top-server-card {
  background: #2a2d42;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-template-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 0;
  color: var(--soft);
}

.landing-template-footer-copy {
  display: grid;
  gap: 6px;
  max-width: 32rem;
}

.landing-template-footer-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.landing-template-footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.landing-template-footer-links a {
  color: var(--muted);
}

.landing-template-footer-links a:hover {
  color: var(--text);
}

.landing-template-page .top-server-card,
.landing-template-page .landing-user-badge,
.landing-template-page .top-server-icon-wrap,
.landing-template-page .top-server-icon,
.landing-template-page .landing-user-avatar,
.landing-template-page .landing-user-avatar-fallback,
.landing-template-page .fallback-icon {
  border-radius: 0;
}

.landing-template-page .primary-button,
.landing-template-page .ghost-button {
  box-shadow: none;
}

.landing-template-page .primary-button:hover,
.landing-template-page .ghost-button:hover,
.landing-template-page .top-server-card:hover,
.landing-template-page .landing-template-feature-card:hover,
.landing-template-page .landing-template-stat-card:hover {
  transform: none;
}

.landing-template-page.js-reveal-enabled .reveal-on-scroll {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.landing-template-page.js-reveal-enabled .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .landing-template-topbar,
  .landing-template-hero,
  .landing-template-live-grid,
  .landing-template-feature-grid,
  .landing-template-stat-row,
  .landing-template-server-grid {
    grid-template-columns: 1fr;
  }

  .landing-template-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .landing-template-topbar,
  .landing-template-actions,
  .landing-template-nav,
  .landing-template-cta,
  .landing-template-live-head,
  .landing-template-footer,
  .landing-template-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-template-page #landing-hero-title {
    max-width: 100%;
    font-size: clamp(3.2rem, 17vw, 4.9rem);
  }

  .landing-template-subtitle {
    max-width: 100%;
  }

  .landing-template-illustration-wrap {
    min-height: auto;
  }

  .landing-template-illustration-wrap::after {
    width: 90px;
    height: 90px;
  }
}

.command-search-field {
  margin-bottom: 22px;
}

.command-catalog {
  display: grid;
  gap: 24px;
}

.command-category {
  display: grid;
  gap: 14px;
}

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

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

.command-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 29, 0.72);
}

.command-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.command-card code {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}

.command-card p,
.command-card small {
  margin: 0;
}
