:root {
  --bg: #020617;
  --bg-soft: #030712;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --panel-border: rgba(0, 217, 255, 0.22);
  --border-soft: rgba(148, 163, 184, 0.14);
  --text: #f8fafc;
  --muted: #9ca8ba;
  --muted-2: #64748b;
  --cyan: #00d9ff;
  --blue: #2f80ff;
  --purple: #8a3ffc;
  --pink: #d946ef;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 217, 255, 0.18), transparent 32%),
    radial-gradient(circle at 84% 16%, rgba(138, 63, 252, 0.22), transparent 30%),
    linear-gradient(180deg, #020617 0%, #030712 52%, #020617 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 217, 255, 0.04), transparent 30%, rgba(138, 63, 252, 0.05)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 28%);
  z-index: -5;
}

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

.site-shell {
  position: relative;
  min-height: 100vh;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.19;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -4;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    #ffffff 0,
    #ffffff 1px,
    transparent 1px,
    transparent 5px
  );
  z-index: -1;
}

.glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -3;
}

.glow-cyan {
  top: 140px;
  left: -160px;
  background: var(--cyan);
}

.glow-purple {
  top: 160px;
  right: -160px;
  background: var(--purple);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(16px);
}

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

.brand-mark,
.core-emblem,
.guild-fallback,
.preview-avatar,
.server-icon {
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(135deg, var(--cyan), var(--blue) 45%, var(--purple)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), transparent 35%);
  box-shadow:
    0 0 28px rgba(0, 217, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.auth-area {
  display: flex;
  justify-content: flex-end;
}

.button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 12px 18px;
  border-radius: 15px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 42%, var(--purple));
  box-shadow: 0 0 34px rgba(0, 217, 255, 0.25);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 42, 0.72);
}

.button-ghost {
  border-color: rgba(0, 217, 255, 0.22);
}

.full-width {
  width: 100%;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(0, 217, 255, 0.18);
}

.user-pill img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 0;
  min-height: 710px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.status-pill,
.panel-chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  background: rgba(0, 217, 255, 0.08);
  color: #bff6ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.status-pill {
  padding: 8px 12px;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 850px;
  margin: 14px 0 20px;
  font-size: clamp(3.5rem, 8.4vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.095em;
}

.hero-text {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.hero-stats div,
.logo-strip,
.feature-card,
.dashboard-preview-card,
.command-card,
.roadmap-item,
.cta-section,
.panel,
.dashboard-hero,
.core-card,
.dashboard-status-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.15rem;
}

.hero-stats span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.orbital-ring {
  position: absolute;
  width: min(440px, 80vw);
  height: min(440px, 80vw);
  border-radius: 999px;
  background:
    conic-gradient(from 40deg, var(--cyan), transparent 18%, transparent 26%, var(--purple), transparent 48%, transparent 56%, var(--cyan), transparent 78%);
  filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.26));
  opacity: 0.9;
}

.orbital-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: var(--bg);
}

.core-emblem {
  position: relative;
  z-index: 2;
  width: 170px;
  height: 170px;
  border-radius: 44px;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.core-emblem span {
  transform: rotate(-45deg);
  font-size: 6rem;
  font-weight: 950;
  letter-spacing: -0.12em;
}

.core-card {
  position: absolute;
  z-index: 4;
  width: min(430px, 92vw);
  bottom: 26px;
  border-radius: 30px;
  padding: 22px;
}

.card-topline,
.preview-header,
.panel-title-row,
.guild-card,
.module-card-top,
.server-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-topline {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.online {
  color: #b8f7cf;
}

.module-grid-mini {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.module-grid-mini div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.module-grid-mini span {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 0.86rem;
}

.system-meter {
  margin-top: 18px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.system-meter span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.28);
}

.logo-strip {
  width: min(1240px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 18px;
  border-radius: 24px;
  display: flex;
  justify-content: space-around;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 900;
}

.section {
  width: min(1240px, calc(100% - 32px));
  margin: 100px auto 0;
}

.section-heading {
  max-width: 820px;
}

.section h2,
.dashboard-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 4.2vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.section-heading p,
.split-section p,
.cta-section p,
.dashboard-hero p,
.panel-title-row p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.feature-grid,
.command-grid,
.module-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.command-card,
.module-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card::before,
.command-card::before,
.module-card::before,
.panel::before,
.dashboard-preview-card::before,
.cta-section::before,
.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.13), transparent 45%, rgba(138, 63, 252, 0.14));
  pointer-events: none;
}

.feature-card:hover,
.command-card:hover,
.module-card:hover,
.guild-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.45);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.16);
  margin-bottom: 18px;
}

.feature-card h3,
.command-card h3,
.module-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.feature-card p,
.command-card p,
.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.split-section {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 42px;
  align-items: center;
}

.check-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.check-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dbeafe;
  font-weight: 800;
}

.check-list span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.dashboard-preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 26px;
}

.preview-header {
  margin-bottom: 24px;
}

.preview-header strong,
.preview-header span {
  display: block;
}

.preview-header span {
  color: var(--muted);
  margin-top: 4px;
}

.preview-avatar,
.server-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-weight: 950;
}

.preview-server {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.preview-server strong,
.preview-server span {
  display: block;
}

.preview-server span {
  color: var(--muted);
  margin-top: 3px;
}

.preview-server button {
  border: 0;
  padding: 10px 13px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  font-weight: 900;
}

.preview-modules {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.preview-modules div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-weight: 800;
}

.command-card code {
  display: inline-flex;
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 950;
  margin-bottom: 12px;
}

.command-card span {
  margin-top: 18px;
  display: inline-flex;
  color: #dbeafe;
  background: rgba(0, 217, 255, 0.09);
  border: 1px solid rgba(0, 217, 255, 0.18);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.roadmap {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
}

.roadmap-item > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  font-weight: 950;
}

.roadmap-item.done > span {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.26);
}

.roadmap-item.active > span {
  color: #bff6ff;
  border-color: rgba(0, 217, 255, 0.36);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.14);
}

.roadmap-item h3,
.roadmap-item p {
  margin: 0;
}

.roadmap-item p {
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.6;
}

.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 80px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer div {
  display: flex;
  gap: 20px;
}

/* Dashboard */

.dashboard-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 90px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.dashboard-hero h1 {
  max-width: 850px;
}

.dashboard-status-card {
  min-width: 220px;
  border-radius: 26px;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.dashboard-status-card strong,
.dashboard-status-card small {
  display: block;
}

.dashboard-status-card small {
  color: var(--muted);
}

.dashboard-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.account-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.account-profile img {
  width: 68px;
  height: 68px;
  border-radius: 22px;
}

.account-profile strong,
.account-profile span,
.account-profile small {
  display: block;
}

.account-profile span,
.account-profile small {
  color: var(--muted);
  margin-top: 4px;
}

.account-stat-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.account-stat-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.account-stat-grid strong,
.account-stat-grid span {
  display: block;
}

.account-stat-grid strong {
  font-size: 1.6rem;
}

.account-stat-grid span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.86rem;
}

.quick-actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.panel-title-row {
  align-items: flex-start;
  margin-bottom: 20px;
}

.server-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.server-tools input,
.server-tools select {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.52);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

.server-tools input:focus,
.server-tools select:focus {
  border-color: rgba(0, 217, 255, 0.5);
}

.guild-list {
  display: grid;
  gap: 13px;
}

.guild-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.guild-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.guild-main img,
.guild-fallback {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  flex: 0 0 auto;
  font-weight: 950;
}

.guild-fallback.huge {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  font-size: 2rem;
}

.guild-main strong,
.guild-main span {
  display: block;
}

.guild-main strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-main span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.92rem;
}

.guild-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  padding: 7px 10px;
  white-space: nowrap;
}

.badge-online {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
}

.badge-warning {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.24);
}

.badge-muted {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.16);
}

.loading-box,
.empty-state {
  color: var(--muted);
  padding: 20px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.empty-state p {
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Server Page */

.server-hero-main {
  justify-content: flex-start;
}

.server-hero-icon img {
  width: 92px;
  height: 92px;
  border-radius: 28px;
}

.module-panel {
  margin-top: 22px;
}

.module-card {
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.module-card button {
  margin-top: 20px;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.74);
  color: var(--muted);
  border-radius: 14px;
  font-weight: 900;
}

/* Responsive */

@media (max-width: 980px) {
  .topbar {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .auth-area {
    justify-content: center;
  }

  .hero,
  .split-section,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .feature-grid,
  .command-grid,
  .module-list {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .cta-section,
  .panel-title-row,
  .guild-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-tools {
    width: 100%;
    flex-direction: column;
  }

  .server-tools input,
  .server-tools select {
    width: 100%;
  }

  .guild-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }
}

@media (max-width: 620px) {
  .hero-stats,
  .module-grid-mini,
  .preview-modules,
  .account-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions,
  .guild-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .core-emblem {
    width: 140px;
    height: 140px;
  }

  .core-emblem span {
    font-size: 5rem;
  }
}



/* Official Modulr brand assets */
.brand-mark {
  background: url("/assets/modulr-logo.png") center / cover no-repeat !important;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.24);
}

.core-emblem {
  background: url("/assets/modulr-logo.png") center / cover no-repeat !important;
  transform: none !important;
  border-radius: 48px !important;
  border: 1px solid rgba(0, 217, 255, 0.28);
  box-shadow:
    0 0 50px rgba(0, 217, 255, 0.22),
    0 0 90px rgba(138, 63, 252, 0.18) !important;
}

.core-emblem span {
  display: none !important;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  padding: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.46) 100%),
    url("/assets/modulr-banner.webp") center / cover no-repeat;
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 43px;
  border: 1px solid rgba(0, 217, 255, 0.14);
  pointer-events: none;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.dashboard-hero {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.78)),
    url("/assets/modulr-banner.webp") center / cover no-repeat !important;
}

.footer::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  background: url("/assets/modulr-logo.png") center / cover no-repeat;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.22);
}


/* Modulr Circuit Board Background */

.site-shell {
  position: relative;
  isolation: isolate;
}

.circuit-board-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -6;
  opacity: 1;
}

.circuit-board-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 217, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(138, 63, 252, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
}

.circuit-board-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 217, 255, 0.06), transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(138, 63, 252, 0.07), transparent 20%),
    radial-gradient(circle at 35% 74%, rgba(47, 128, 255, 0.05), transparent 22%);
}

.circuit-chip {
  position: absolute;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(8, 16, 38, 0.82), rgba(3, 8, 24, 0.65));
  border: 1px solid rgba(0, 217, 255, 0.10);
  box-shadow:
    0 0 40px rgba(0, 217, 255, 0.05),
    inset 0 0 20px rgba(138, 63, 252, 0.05);
}

.chip-a {
  top: 14%;
  right: 8%;
  width: 220px;
  height: 140px;
  transform: rotate(6deg);
}

.chip-b {
  bottom: 12%;
  left: 7%;
  width: 260px;
  height: 160px;
  transform: rotate(-5deg);
}

.trace {
  position: absolute;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.07), rgba(138, 63, 252, 0.07));
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.04);
}

.trace-h {
  height: 2px;
  width: 38%;
}

.trace-v {
  width: 2px;
  height: 34%;
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.07), rgba(138, 63, 252, 0.07));
}

.trace-h1 { top: 18%; left: -4%; }
.trace-h2 { top: 34%; right: -2%; width: 44%; }
.trace-h3 { bottom: 28%; left: 6%; width: 42%; }
.trace-h4 { bottom: 14%; right: 3%; width: 36%; }

.trace-v1 { left: 18%; top: 8%; }
.trace-v2 { left: 74%; top: 18%; height: 42%; }
.trace-v3 { right: 12%; bottom: 8%; height: 34%; }
.trace-v4 { left: 48%; bottom: 10%; height: 24%; }

.pulse {
  position: absolute;
  display: block;
  border-radius: inherit;
  filter: blur(0.4px);
  opacity: 0;
}

.trace-h .pulse {
  top: -1px;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.95), rgba(138, 63, 252, 0.95), transparent);
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.8),
    0 0 18px rgba(138, 63, 252, 0.45);
}

.trace-v .pulse {
  left: -1px;
  width: 4px;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(0, 217, 255, 0.95), rgba(138, 63, 252, 0.95), transparent);
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.8),
    0 0 18px rgba(138, 63, 252, 0.45);
}

.pulse-1 { animation: pulseRight 7.5s linear infinite; animation-delay: 0.2s; }
.pulse-2 { animation: pulseLeft 9s linear infinite; animation-delay: 1.5s; }
.pulse-3 { animation: pulseRight 8.5s linear infinite; animation-delay: 2.8s; }
.pulse-4 { animation: pulseLeft 10s linear infinite; animation-delay: 0.8s; }

.pulse-v1 { animation: pulseDown 8s linear infinite; animation-delay: 1.2s; }
.pulse-v2 { animation: pulseUp 9.5s linear infinite; animation-delay: 2.4s; }
.pulse-v3 { animation: pulseDown 11s linear infinite; animation-delay: 0.5s; }
.pulse-v4 { animation: pulseUp 7.8s linear infinite; animation-delay: 3.1s; }

@keyframes pulseRight {
  0%   { transform: translateX(-120px); opacity: 0; }
  8%   { opacity: 1; }
  45%  { opacity: 1; }
  60%  { opacity: 0.85; }
  100% { transform: translateX(1200px); opacity: 0; }
}

@keyframes pulseLeft {
  0%   { transform: translateX(1200px); opacity: 0; }
  8%   { opacity: 1; }
  45%  { opacity: 1; }
  60%  { opacity: 0.85; }
  100% { transform: translateX(-120px); opacity: 0; }
}

@keyframes pulseDown {
  0%   { transform: translateY(-120px); opacity: 0; }
  8%   { opacity: 1; }
  45%  { opacity: 1; }
  60%  { opacity: 0.85; }
  100% { transform: translateY(1200px); opacity: 0; }
}

@keyframes pulseUp {
  0%   { transform: translateY(1200px); opacity: 0; }
  8%   { opacity: 1; }
  45%  { opacity: 1; }
  60%  { opacity: 0.85; }
  100% { transform: translateY(-120px); opacity: 0; }
}

.circuit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.65),
    0 0 20px rgba(138, 63, 252, 0.35);
  opacity: 0.55;
}

.node-1 { top: 18%; left: 20%; }
.node-2 { top: 34%; right: 24%; }
.node-3 { top: 26%; right: 11%; }
.node-4 { bottom: 28%; left: 32%; }
.node-5 { bottom: 14%; right: 18%; }
.node-6 { bottom: 21%; left: 48%; }
.node-7 { top: 44%; left: 18%; }
.node-8 { bottom: 36%; right: 8%; }

@media (max-width: 980px) {
  .circuit-chip {
    opacity: 0.55;
    transform: none;
  }

  .chip-a {
    width: 160px;
    height: 100px;
    top: 10%;
    right: 2%;
  }

  .chip-b {
    width: 180px;
    height: 110px;
    bottom: 10%;
    left: 2%;
  }

  .trace-h {
    width: 52%;
  }

  .trace-v {
    height: 28%;
  }
}

@media (max-width: 620px) {
  .circuit-board-bg {
    opacity: 0.75;
  }

  .trace-h1,
  .trace-h4,
  .trace-v3,
  .trace-v4,
  .chip-b,
  .node-7,
  .node-8 {
    display: none;
  }
}



/* Professional Circuit Background Refinement */

.circuit-board-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -6;
  opacity: 1;
  isolation: isolate;
}

.circuit-board-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 217, 255, 0.09), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(138, 63, 252, 0.10), transparent 24%),
    radial-gradient(circle at 52% 75%, rgba(47, 128, 255, 0.07), transparent 30%),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    auto,
    120px 120px,
    120px 120px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.7) 60%, transparent 100%);
  opacity: 0.6;
}

.circuit-board-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(0, 217, 255, 0.035) 20%, transparent 35%, transparent 65%, rgba(138, 63, 252, 0.04) 82%, transparent 100%);
  animation: bgSheen 14s linear infinite;
  opacity: 0.7;
}

@keyframes bgSheen {
  0%   { transform: translateX(-10%); opacity: 0.25; }
  50%  { opacity: 0.55; }
  100% { transform: translateX(10%); opacity: 0.25; }
}

.circuit-chip {
  position: absolute;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(8, 14, 32, 0.55), rgba(3, 8, 22, 0.25));
  border: 1px solid rgba(0, 217, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(138, 63, 252, 0.04) inset,
    0 0 45px rgba(0, 217, 255, 0.04);
  opacity: 0.5;
}

.circuit-chip::before,
.circuit-chip::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.025);
}

.circuit-chip::after {
  inset: auto 16px -10px 16px;
  top: auto;
  height: 10px;
  border: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0,217,255,0.10) 0 2px,
      transparent 2px 12px
    );
  opacity: 0.25;
}

.chip-a {
  top: 12%;
  right: 7%;
  width: 240px;
  height: 150px;
  transform: rotate(5deg);
}

.chip-b {
  bottom: 10%;
  left: 6%;
  width: 280px;
  height: 170px;
  transform: rotate(-4deg);
}

.trace {
  position: absolute;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0.9;
}

.trace-h {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.16), rgba(138, 63, 252, 0.14));
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.07),
    0 0 20px rgba(138, 63, 252, 0.04);
}

.trace-v {
  width: 1px;
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.16), rgba(138, 63, 252, 0.14));
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.07),
    0 0 20px rgba(138, 63, 252, 0.04);
}

.trace-h1 { top: 16%; left: -2%; width: 42%; }
.trace-h2 { top: 33%; right: 4%; width: 36%; }
.trace-h3 { bottom: 30%; left: 8%; width: 40%; }
.trace-h4 { bottom: 16%; right: -2%; width: 38%; }

.trace-v1 { left: 16%; top: 8%; height: 38%; }
.trace-v2 { left: 72%; top: 16%; height: 44%; }
.trace-v3 { right: 14%; bottom: 10%; height: 30%; }
.trace-v4 { left: 46%; bottom: 8%; height: 26%; }

.trace::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 24px,
      rgba(255,255,255,0.06) 24px 26px,
      transparent 26px 52px
    );
  opacity: 0.16;
}

.trace-v::before {
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 24px,
      rgba(255,255,255,0.06) 24px 26px,
      transparent 26px 52px
    );
}

.pulse {
  position: absolute;
  display: block;
  border-radius: inherit;
  opacity: 0;
  filter: blur(0.5px);
}

.trace-h .pulse {
  top: -2px;
  width: 120px;
  height: 5px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(0, 217, 255, 0.95) 30%,
      rgba(255, 255, 255, 0.92) 50%,
      rgba(138, 63, 252, 0.95) 70%,
      transparent
    );
  box-shadow:
    0 0 12px rgba(0, 217, 255, 0.85),
    0 0 26px rgba(138, 63, 252, 0.35);
}

.trace-v .pulse {
  left: -2px;
  width: 5px;
  height: 120px;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(0, 217, 255, 0.95) 30%,
      rgba(255, 255, 255, 0.92) 50%,
      rgba(138, 63, 252, 0.95) 70%,
      transparent
    );
  box-shadow:
    0 0 12px rgba(0, 217, 255, 0.85),
    0 0 26px rgba(138, 63, 252, 0.35);
}

.pulse-1  { animation: pulseRightPro 11s ease-in-out infinite; animation-delay: 0.8s; }
.pulse-2  { animation: pulseLeftPro 13s ease-in-out infinite; animation-delay: 2.0s; }
.pulse-3  { animation: pulseRightPro 12s ease-in-out infinite; animation-delay: 4.0s; }
.pulse-4  { animation: pulseLeftPro 14s ease-in-out infinite; animation-delay: 1.2s; }

.pulse-v1 { animation: pulseDownPro 12s ease-in-out infinite; animation-delay: 2.4s; }
.pulse-v2 { animation: pulseUpPro 14s ease-in-out infinite; animation-delay: 0.6s; }
.pulse-v3 { animation: pulseDownPro 15s ease-in-out infinite; animation-delay: 3.3s; }
.pulse-v4 { animation: pulseUpPro 11s ease-in-out infinite; animation-delay: 5s; }

@keyframes pulseRightPro {
  0%   { transform: translateX(-180px); opacity: 0; }
  6%   { opacity: 0.95; }
  20%  { opacity: 1; }
  55%  { opacity: 0.95; }
  85%  { opacity: 0.5; }
  100% { transform: translateX(1400px); opacity: 0; }
}

@keyframes pulseLeftPro {
  0%   { transform: translateX(1400px); opacity: 0; }
  6%   { opacity: 0.95; }
  20%  { opacity: 1; }
  55%  { opacity: 0.95; }
  85%  { opacity: 0.5; }
  100% { transform: translateX(-180px); opacity: 0; }
}

@keyframes pulseDownPro {
  0%   { transform: translateY(-180px); opacity: 0; }
  6%   { opacity: 0.95; }
  20%  { opacity: 1; }
  55%  { opacity: 0.95; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(1400px); opacity: 0; }
}

@keyframes pulseUpPro {
  0%   { transform: translateY(1400px); opacity: 0; }
  6%   { opacity: 0.95; }
  20%  { opacity: 1; }
  55%  { opacity: 0.95; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-180px); opacity: 0; }
}

.circuit-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.55),
    0 0 20px rgba(138, 63, 252, 0.25);
  opacity: 0.42;
  animation: nodeFlicker 6s ease-in-out infinite;
}

@keyframes nodeFlicker {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  25%      { opacity: 0.55; transform: scale(1.08); }
  50%      { opacity: 0.42; transform: scale(1); }
  75%      { opacity: 0.65; transform: scale(1.12); }
}

.node-1 { top: 16%; left: 19%; animation-delay: 0.2s; }
.node-2 { top: 33%; right: 24%; animation-delay: 1.2s; }
.node-3 { top: 22%; right: 10%; animation-delay: 2s; }
.node-4 { bottom: 30%; left: 31%; animation-delay: 2.6s; }
.node-5 { bottom: 16%; right: 19%; animation-delay: 1.8s; }
.node-6 { bottom: 21%; left: 46%; animation-delay: 3.2s; }
.node-7 { top: 43%; left: 16%; animation-delay: 0.8s; }
.node-8 { bottom: 38%; right: 9%; animation-delay: 2.8s; }

/* Keep the main content readable */
.hero,
.dashboard-hero,
.panel,
.feature-card,
.command-card,
.module-card,
.roadmap-item,
.cta-section {
  backdrop-filter: blur(18px);
}

@media (max-width: 980px) {
  .chip-a {
    width: 180px;
    height: 110px;
    top: 10%;
    right: 2%;
    transform: none;
  }

  .chip-b {
    width: 200px;
    height: 120px;
    bottom: 9%;
    left: 2%;
    transform: none;
  }

  .trace-h {
    width: 46%;
  }

  .trace-v {
    height: 28%;
  }
}

@media (max-width: 620px) {
  .circuit-board-bg {
    opacity: 0.82;
  }

  .chip-b,
  .trace-h4,
  .trace-v4,
  .node-7,
  .node-8 {
    display: none;
  }

  .trace-h .pulse {
    width: 80px;
  }

  .trace-v .pulse {
    height: 80px;
  }
}




/* Ultra Premium Experience Layer */

html, body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, .brand strong, .button, .eyebrow, .status-pill, .badge {
  font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.025), transparent 16%),
    radial-gradient(circle at 78% 16%, rgba(255,255,255,0.02), transparent 15%);
  mix-blend-mode: screen;
  opacity: 0.55;
  z-index: -2;
}

::selection {
  background: rgba(0, 217, 255, 0.22);
  color: #ffffff;
}

.topbar {
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
  border-radius: 22px;
}

.topbar.scrolled {
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(0, 217, 255, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(18px);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  box-shadow:
    0 0 14px rgba(0, 217, 255, 0.55),
    0 0 20px rgba(138, 63, 252, 0.25);
  transition: width 0.08s linear;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.08), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(138, 63, 252, 0.08), transparent 35%),
    rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(12px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader-inner {
  width: min(420px, calc(100% - 40px));
  padding: 28px;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(0, 217, 255, 0.18);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.36),
    0 0 70px rgba(0, 217, 255, 0.08);
  text-align: center;
}

.page-loader-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.35));
}

.page-loader-copy {
  margin-top: 16px;
}

.page-loader-copy span,
.page-loader-copy strong {
  display: block;
}

.page-loader-copy span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.page-loader-copy strong {
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-loader-bar {
  margin-top: 20px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
}

.page-loader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  box-shadow:
    0 0 18px rgba(0, 217, 255, 0.45),
    0 0 24px rgba(138, 63, 252, 0.18);
  transition: width 0.22s ease;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.14), rgba(138, 63, 252, 0.18)),
    rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(8px);
  transition: opacity 0.28s ease;
}

.page-transition-active {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.988);
  filter: blur(6px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero,
.panel,
.feature-card,
.command-card,
.module-card,
.roadmap-item,
.dashboard-preview-card,
.dashboard-hero,
.cta-section,
.guild-card,
.hero-stats > div,
.dashboard-status-card {
  position: relative;
  overflow: hidden;
}

.hero::before,
.panel::after,
.feature-card::after,
.command-card::after,
.module-card::after,
.roadmap-item::after,
.dashboard-preview-card::after,
.dashboard-hero::after,
.cta-section::after,
.guild-card::after,
.hero-stats > div::after,
.dashboard-status-card::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -40%;
  width: 56%;
  height: 280%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.02) 30%,
    rgba(255,255,255,0.08) 48%,
    transparent 68%
  );
  transform: rotate(12deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.panel:hover::after,
.feature-card:hover::after,
.command-card:hover::after,
.module-card:hover::after,
.roadmap-item:hover::after,
.dashboard-preview-card:hover::after,
.dashboard-hero:hover::after,
.cta-section:hover::after,
.guild-card:hover::after,
.hero-stats > div:hover::after,
.dashboard-status-card:hover::after {
  opacity: 1;
  animation: premiumSheen 1.15s ease;
}

@keyframes premiumSheen {
  0% {
    transform: translateX(-40%) rotate(12deg);
  }
  100% {
    transform: translateX(240%) rotate(12deg);
  }
}

.button,
.server-tools input,
.server-tools select,
.user-pill {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.button-primary:hover {
  box-shadow:
    0 0 32px rgba(0, 217, 255, 0.32),
    0 0 40px rgba(138, 63, 252, 0.14);
}

.button-secondary:hover,
.button-ghost:hover,
.user-pill:hover {
  border-color: rgba(0, 217, 255, 0.34);
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.08);
}

.server-tools input:hover,
.server-tools input:focus,
.server-tools select:hover,
.server-tools select:focus {
  border-color: rgba(0, 217, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.06);
}

.brand-mark {
  box-shadow:
    0 0 24px rgba(0, 217, 255, 0.24),
    0 0 42px rgba(138, 63, 252, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.hero-text,
.section-heading p,
.panel-title-row p,
.dashboard-hero p,
.cta-section p,
.feature-card p,
.command-card p,
.module-card p,
.roadmap-item p,
.guild-main span,
.account-profile span,
.account-profile small {
  color: rgba(203, 213, 225, 0.82);
}

.logo-strip,
.panel,
.feature-card,
.command-card,
.module-card,
.roadmap-item,
.dashboard-preview-card,
.dashboard-hero,
.cta-section,
.guild-card,
.hero-stats > div,
.dashboard-status-card,
.page-loader-inner {
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 18px;
  }

  .page-loader-inner {
    padding: 22px;
  }
}





/* Reduced Premium Motion Pass */

.feature-card:hover,
.command-card:hover,
.module-card:hover,
.guild-card:hover,
.roadmap-item:hover,
.panel:hover,
.dashboard-preview-card:hover,
.dashboard-status-card:hover,
.hero-stats > div:hover {
  transform: translateY(-1px) !important;
}

.feature-card,
.command-card,
.module-card,
.guild-card,
.roadmap-item,
.panel,
.dashboard-preview-card,
.dashboard-status-card,
.hero-stats > div {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease !important;
}

.button:hover {
  transform: translateY(-1px) !important;
}

.user-pill:hover {
  transform: none !important;
}

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

/* Professional Content Cleanup */

.professional-hero .hero-note {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.96rem;
  line-height: 1.65;
}

.professional-core-card {
  width: min(460px, 92vw);
}

.professional-module-list {
  margin-top: 20px;
  display: grid;
  gap: 11px;
}

.professional-module-list div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.professional-module-list strong,
.professional-module-list span {
  display: block;
}

.professional-module-list span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

.professional-section {
  margin-top: 70px;
}

.standard-page {
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 90px;
}

.standard-panel {
  margin-top: 22px;
}

.command-table {
  display: grid;
  gap: 12px;
}

.command-table div {
  display: grid;
  grid-template-columns: 180px 130px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.command-table code {
  color: var(--cyan);
  font-weight: 950;
  font-size: 1.05rem;
}

.command-table span {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(0, 217, 255, 0.09);
  border: 1px solid rgba(0, 217, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
}

.command-table p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.docs-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.docs-card h2 {
  margin-bottom: 10px;
}

.docs-card p {
  color: var(--muted);
  line-height: 1.65;
}

.status-grid {
  display: grid;
  gap: 13px;
}

.status-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.status-card h3,
.status-card p {
  margin: 0;
}

.status-card p {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .command-table div {
    grid-template-columns: 1fr;
  }

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

  .status-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Premium Header Polish */

.topbar {
  width: min(1240px, calc(100% - 28px)) !important;
  margin: 14px auto 0 !important;
  padding: 12px 14px !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(90deg, rgba(8, 15, 35, 0.88), rgba(12, 16, 42, 0.82)),
    rgba(2, 6, 23, 0.74) !important;
  border: 1px solid rgba(0, 217, 255, 0.16) !important;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 38px rgba(0, 217, 255, 0.045) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.topbar.scrolled {
  margin-top: 10px !important;
  background:
    linear-gradient(90deg, rgba(5, 10, 26, 0.94), rgba(10, 13, 36, 0.9)),
    rgba(2, 6, 23, 0.88) !important;
  border-color: rgba(0, 217, 255, 0.2) !important;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 42px rgba(0, 217, 255, 0.06) !important;
}

.brand {
  gap: 11px !important;
  min-width: 0 !important;
}

.brand-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  flex: 0 0 42px !important;
  box-shadow:
    0 0 18px rgba(0, 217, 255, 0.22),
    0 0 32px rgba(138, 63, 252, 0.12) !important;
}

.brand strong {
  font-size: 1.05rem !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}

.brand span {
  font-size: 0.73rem !important;
  color: rgba(203, 213, 225, 0.68) !important;
}

.nav-links {
  gap: 6px !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background: rgba(2, 6, 23, 0.24) !important;
  border: 1px solid rgba(148, 163, 184, 0.08) !important;
}

.nav-links a {
  padding: 9px 13px !important;
  border-radius: 999px !important;
  color: rgba(203, 213, 225, 0.78) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease !important;
}

.nav-links a:hover {
  color: #ffffff !important;
  background: rgba(0, 217, 255, 0.08) !important;
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.08) !important;
}

.auth-area {
  align-items: center !important;
}

.user-pill {
  padding: 6px 12px 6px 6px !important;
  gap: 9px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(138, 63, 252, 0.06)),
    rgba(2, 6, 23, 0.52) !important;
  border: 1px solid rgba(0, 217, 255, 0.18) !important;
  box-shadow:
    0 0 22px rgba(0, 217, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset !important;
  max-width: 230px !important;
}

.user-pill img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 217, 255, 0.18) !important;
}

.user-pill span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: rgba(248, 250, 252, 0.94) !important;
  font-weight: 800 !important;
  font-size: 0.94rem !important;
}

.auth-area .button {
  min-height: 38px !important;
  padding: 10px 15px !important;
  border-radius: 999px !important;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .brand {
    justify-content: center !important;
  }

  .nav-links {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .auth-area {
    width: 100% !important;
    justify-content: center !important;
  }

  .user-pill {
    max-width: min(320px, 100%) !important;
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(100% - 18px, 1240px) !important;
    margin-top: 9px !important;
    border-radius: 22px !important;
  }

  .nav-links {
    gap: 4px !important;
  }

  .nav-links a {
    padding: 8px 10px !important;
    font-size: 0.86rem !important;
  }

  .brand-mark {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }
}

/* Official Community / Support Enhancements */

.support-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.support-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.support-card h2 {
  margin: 0 0 10px;
}

.support-card p {
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.support-note {
  margin-top: 22px;
}

.support-note h2 {
  margin: 8px 0 10px;
}

.support-note p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* Professional Completion Update */

.faq-grid,
.roadmap-board,
.updates-list {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

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

.faq-card h2,
.roadmap-column h2,
.update-card h2,
.legal-panel h2 {
  margin: 0 0 10px;
}

.faq-card p,
.roadmap-column p,
.update-card p,
.legal-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.faq-card .button {
  margin-top: 14px;
}

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

.roadmap-column {
  min-height: 310px;
}

.roadmap-column h2 {
  margin-top: 16px;
}

.roadmap-list {
  margin-top: 16px;
  display: grid;
  gap: 11px;
}

.roadmap-list div {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(226, 232, 240, 0.9);
  font-weight: 700;
}

.updates-list {
  grid-template-columns: 1fr;
}

.update-card {
  display: grid;
  gap: 10px;
}

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

.update-meta small {
  color: var(--muted);
  font-weight: 800;
}

.legal-panel {
  margin-top: 22px;
}

.legal-panel h2 {
  margin-top: 28px;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel .button {
  margin-top: 20px;
}

.setup-panel {
  margin-top: 22px;
}

.setup-checklist {
  display: grid;
  gap: 13px;
}

.setup-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.setup-item > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.setup-item.done > span {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.26);
}

.setup-item.pending > span {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.setup-item strong,
.setup-item p {
  display: block;
  margin: 0;
}

.setup-item p {
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}

.enhanced-status-card {
  min-height: 96px;
}

@media (max-width: 900px) {
  .faq-grid,
  .roadmap-board {
    grid-template-columns: 1fr;
  }
}

/* Resource Access + Mega Footer */

.resources-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.compact-resources-grid {
  grid-template-columns: repeat(3, 1fr);
}

.resource-card {
  display: block;
  color: inherit;
  min-height: 190px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.resource-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 217, 255, 0.38);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(0, 217, 255, 0.08);
}

.resource-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.18);
  font-weight: 950;
  margin-bottom: 18px;
}

.resource-card h2 {
  margin: 0 0 8px;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

.mega-footer {
  align-items: stretch !important;
  display: grid !important;
  grid-template-columns: 0.8fr 1.4fr !important;
  gap: 34px !important;
  padding: 34px 0 40px !important;
}

.mega-footer::before {
  display: none !important;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand .brand-mark {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 1.15rem;
}

.footer-brand span {
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.footer-links-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px !important;
}

.footer-links-grid div {
  display: grid !important;
  gap: 9px !important;
}

.footer-links-grid h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-links-grid a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.18s ease;
}

.footer-links-grid a:hover {
  color: var(--cyan);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

@media (max-width: 980px) {
  .compact-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mega-footer {
    grid-template-columns: 1fr !important;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 620px) {
  .resources-grid,
  .compact-resources-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Final Hardening + Mobile Polish */

.error-hero {
  min-height: 360px;
}

.error-hero h1 {
  max-width: 860px;
}

.module-card button[disabled] {
  min-height: auto !important;
  padding: 13px 14px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

@media (max-width: 760px) {
  .topbar {
    padding: 14px 12px !important;
  }

  .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    border-radius: 20px !important;
    padding: 6px !important;
  }

  .nav-links a {
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    padding: 10px 8px !important;
  }

  .hero-actions {
    width: 100% !important;
  }

  .hero-actions .button {
    width: 100% !important;
  }

  .dashboard-hero {
    padding: 24px !important;
  }

  .standard-page {
    margin-top: 28px !important;
  }
}

@media (max-width: 430px) {
  .nav-links {
    grid-template-columns: 1fr !important;
  }

  .brand span {
    display: none !important;
  }

  .page-loader-copy strong {
    font-size: 1.05rem !important;
  }
}
