:root {
  color-scheme: dark;
  --bg: #06070d;
  --bg-2: #10111d;
  --panel: rgba(45, 34, 76, 0.58);
  --panel-2: rgba(69, 50, 110, 0.64);
  --panel-3: rgba(92, 70, 140, 0.62);
  --text: #f8fbff;
  --muted: #bcc8d5;
  --soft: #e1e8ef;
  --brand: #8b5cf6;
  --cyan: #c4a8ff;
  --green: #7ee3a2;
  --yellow: #f7d47d;
  --rose: #ff9ca8;
  --danger: #ff6b8a;
  --border: rgba(255, 255, 255, 0.11);
  --strong-border: rgba(202, 172, 255, 0.38);
  --radius: 8px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --mouse-x: 50%;
  --mouse-y: 20%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(980px 620px at 16% -8%, rgba(126, 227, 162, 0.13), transparent 58%),
    radial-gradient(880px 560px at 86% 8%, rgba(196, 168, 255, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(8, 9, 17, 0.86), #10111d 48%, #030408);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(6, 7, 13, 0.15), rgba(6, 7, 13, 0.86)),
    linear-gradient(rgba(255, 255, 255, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-position:
    center,
    calc(var(--mouse-x) * -0.025) calc(var(--mouse-y) * -0.025),
    calc(var(--mouse-x) * -0.025) calc(var(--mouse-y) * -0.025);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 82%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 7, 13, 0.04), rgba(6, 7, 13, 0.78)),
    radial-gradient(900px 540px at var(--mouse-x) var(--mouse-y), rgba(196, 168, 255, 0.18), transparent 66%),
    radial-gradient(720px 480px at calc(100% - var(--mouse-x)) 18%, rgba(126, 227, 162, 0.1), transparent 64%);
  pointer-events: none;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(4, 6, 12, 0.82), rgba(13, 14, 25, 0.58) 42%, rgba(4, 6, 12, 0.88)),
    url("./assets/clearbanner.png") center / cover no-repeat,
    url("./assets/clearswap-banner.png") center / cover no-repeat;
  pointer-events: none;
}

.site-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 24px);
  opacity: 0.32;
  transform: translate3d(calc((50% - var(--mouse-x)) * 0.018), calc((50% - var(--mouse-y)) * 0.018), 0);
}

.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 26%, rgba(196, 168, 255, 0.13) 42%, transparent 60% 100%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.1), rgba(6, 7, 13, 0.74));
  mix-blend-mode: screen;
  opacity: 0.48;
  animation: backdrop-sweep 18s ease-in-out infinite alternate;
}

.backdrop-line {
  position: absolute;
  height: 1px;
  width: 52vw;
  background: linear-gradient(90deg, transparent, rgba(196, 168, 255, 0.42), rgba(126, 227, 162, 0.3), transparent);
  opacity: 0.42;
  transform: rotate(-18deg);
}

.line-one {
  top: 18%;
  left: -8%;
}

.line-two {
  top: 58%;
  right: -10%;
}

.line-three {
  bottom: 14%;
  left: 18%;
}

@keyframes backdrop-sweep {
  from {
    transform: translateX(-8%);
  }

  to {
    transform: translateX(8%);
  }
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 84px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(9, 7, 21, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  grid-column: 1;
  justify-self: start;
  gap: 14px;
  color: var(--text);
  font-size: 23px;
  font-weight: 950;
  transition: color 0.18s ease, transform 0.18s ease;
}

.brand strong {
  text-shadow: 0 0 22px rgba(196, 168, 255, 0.46), 0 0 44px rgba(126, 227, 162, 0.16);
}

.brand:hover,
.analytics-brand:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.brand-mark,
.hero-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(88, 101, 242, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.28);
}

.brand-mark {
  width: 48px;
  height: 48px;
}

.brand-mark img,
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-self: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 6px;
}

.desktop-nav a,
.nav-dropdown-button {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  border-radius: 999px;
  padding: 10px 14px;
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.desktop-nav a:hover,
.nav-dropdown-button:hover,
.nav-dropdown[data-open="true"] .nav-dropdown-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.18s ease;
}

.nav-dropdown[data-open="true"] .nav-dropdown-button svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  z-index: 30;
  display: grid;
  width: 250px;
  max-height: min(430px, calc(100vh - 140px));
  gap: 6px;
  overflow-y: auto;
  border: 1px solid var(--strong-border);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(18, 15, 36, 0.98);
  padding: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  scrollbar-width: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-dropdown-menu::-webkit-scrollbar {
  display: none;
}

.nav-dropdown[data-open="true"] .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-dropdown-menu button:hover,
.nav-dropdown-menu button.active {
  background: rgba(139, 92, 246, 0.22);
  color: var(--text);
  transform: translateX(2px);
}

.nav-dropdown-menu small {
  color: var(--cyan);
  font-weight: 950;
}

.discord-button,
.social-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.14);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.discord-button {
  width: auto;
  min-width: 126px;
  grid-column: 3;
  grid-auto-flow: column;
  justify-self: end;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
}

.discord-button:hover,
.social-button:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 101, 242, 0.86);
  background: rgba(139, 92, 246, 0.26);
  box-shadow: 0 12px 34px rgba(139, 92, 246, 0.2);
}

.discord-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  max-width: none;
  min-height: min(780px, calc(100vh - 84px));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 76px 24px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 13, 0.96));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.05);
  transform: scale(1.01);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 7, 13, 0.88) 0%, rgba(28, 20, 49, 0.48) 48%, rgba(6, 7, 13, 0.82) 100%),
    linear-gradient(180deg, rgba(9, 7, 21, 0.12), rgba(9, 7, 21, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, 100%);
  min-height: clamp(520px, 66vh, 680px);
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 44px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.15)),
    rgba(23, 21, 38, 0.42);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(22px) saturate(1.3);
}

.hero-copy {
  max-width: 760px;
}

.hero-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(58px, 9vw, 116px);
  line-height: 0.9;
  text-shadow: 0 0 38px rgba(196, 168, 255, 0.36), 0 0 86px rgba(126, 227, 162, 0.12);
}

h1 span,
h2 span {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(167, 139, 250, 0.42);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.info-grid p,
.tos-card p {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.7;
}

.anchor-target {
  position: relative;
  top: -96px;
  display: block;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, #f5efff, #c4a8ff);
  color: #120f24;
  box-shadow: 0 18px 46px rgba(139, 92, 246, 0.24);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.live-panel {
  align-self: end;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.045)),
    rgba(9, 11, 18, 0.82);
  padding: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px) saturate(1.24);
}

.live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(196, 168, 255, 0.12), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 46px);
  opacity: 0.42;
  pointer-events: none;
}

.live-panel > * {
  position: relative;
  z-index: 1;
}

.live-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
}

.live-panel-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.analytics-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(196, 168, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(196, 168, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
  color: #f8fbff;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.18);
}

.analytics-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-panel-title div > span {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.live-panel-title small {
  display: block;
  margin-top: 3px;
  color: rgba(225, 232, 239, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.stats-dropdown {
  position: relative;
}

.stats-dropdown-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(196, 168, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 950;
}

.stats-dropdown-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.18s ease;
}

.stats-dropdown[data-open="true"] .stats-dropdown-button svg {
  transform: rotate(180deg);
}

.stats-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 8;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(196, 168, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(16, 13, 32, 0.98);
  padding: 8px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.stats-dropdown[data-open="true"] .stats-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.stats-dropdown-menu button {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
  transition: background 0.16s ease, color 0.16s ease;
}

.stats-dropdown-menu button:hover,
.stats-dropdown-menu button.active {
  background: rgba(139, 92, 246, 0.22);
  color: var(--text);
}

.stat-card {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  padding: 18px 20px;
  box-shadow: none;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--text);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1;
}

.primary-stat {
  min-height: 164px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(196, 168, 255, 0.22), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.primary-stat strong {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 50px);
}

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

.stat-row .stat-card + .stat-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-heading.centered {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

body.analytics-route .site-header,
body.bot-route .site-header,
body.analytics-route .site-footer,
body.bot-route .site-footer,
body.analytics-route main > section:not(.analytics-page),
body.bot-route main > section:not(.bot-page) {
  display: none;
}

body:not(.analytics-route) .analytics-page,
body:not(.bot-route) .bot-page {
  display: none;
}

body.analytics-route,
body.bot-route {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.28), transparent 32%),
    linear-gradient(225deg, rgba(196, 168, 255, 0.14), transparent 34%),
    linear-gradient(180deg, var(--bg), #151029 48%, #06050d);
}

.analytics-page {
  max-width: none;
  min-height: calc(100vh - 84px);
  padding: 28px 24px 76px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.15), transparent 28%),
    linear-gradient(225deg, rgba(196, 168, 255, 0.11), transparent 34%),
    rgba(9, 7, 21, 0.72);
  border-block: 1px solid var(--border);
}

body.analytics-route .analytics-page {
  min-height: 100vh;
  border-block: 0;
}

.bot-page {
  max-width: none;
  min-height: 100vh;
  padding: 28px 24px 76px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.15), transparent 28%),
    linear-gradient(225deg, rgba(196, 168, 255, 0.11), transparent 34%),
    rgba(9, 7, 21, 0.72);
}

.bot-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.analytics-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.analytics-topbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  min-height: 64px;
  border: 1px solid var(--strong-border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(210, 186, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(30, 23, 50, 0.82);
  padding: 8px 24px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.16);
}

.analytics-brand,
.analytics-cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-weight: 950;
}

.analytics-actions {
  display: inline-flex;
  justify-self: end;
  gap: 10px;
}

.analytics-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(196, 168, 255, 0.62);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.26);
}

.analytics-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analytics-tabs {
  display: inline-flex;
  justify-self: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 5px;
}

.analytics-tab,
.analytics-refresh,
.analytics-cta {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--soft);
  font-weight: 950;
}

.analytics-refresh,
.analytics-cta,
.review-refresh {
  position: relative;
}

.analytics-refresh.is-syncing,
.analytics-cta.is-syncing,
.review-refresh.is-syncing {
  cursor: wait;
  opacity: 0.78;
}

.analytics-refresh.is-syncing::before,
.analytics-cta.is-syncing::before,
.review-refresh.is-syncing::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: refresh-spin 0.72s linear infinite;
  vertical-align: -2px;
}

.review-refresh.is-syncing svg {
  display: none;
}

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

.analytics-tab {
  position: relative;
  display: grid;
  min-width: 106px;
  gap: 2px;
  background: transparent;
  padding: 9px 13px;
  text-align: left;
}

.analytics-tab.active {
  background:
    linear-gradient(145deg, rgba(196, 168, 255, 0.18), rgba(139, 92, 246, 0.12)),
    rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.analytics-tab.active::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateX(50%);
}

.analytics-tab small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.analytics-cta {
  min-height: 44px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.14);
  padding: 0 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.analytics-cta.secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.analytics-cta:hover {
  transform: translateY(-1px);
  border-color: var(--strong-border);
  background: rgba(139, 92, 246, 0.24);
}

.analytics-hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 54px 0 46px;
  text-align: center;
}

.analytics-hero h2 {
  margin: 0;
  overflow: visible;
  padding: 8px 0 12px;
  background: linear-gradient(90deg, #f8fbff, var(--cyan), #c084fc, #f0abfc);
  background-clip: text;
  color: transparent;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.18;
}

.analytics-hero p {
  display: none;
  margin: 0;
  color: var(--soft);
  font-size: 21px;
}

.analytics-refresh {
  min-height: 36px;
  background: linear-gradient(135deg, #f5efff, #c4a8ff);
  color: #120f24;
  padding: 0 15px;
}

.bot-top-tabs {
  display: inline-flex;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 5px;
}

.bot-login-card,
.bot-dashboard {
  margin: 56px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 168, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(167, 139, 250, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(55, 38, 91, 0.78);
  padding: 30px;
  box-shadow: 0 18px 64px rgba(94, 53, 177, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.12);
}

.bot-login-card {
  display: grid;
  max-width: 560px;
  gap: 22px;
  text-align: center;
}

.bot-login-card.is-hidden,
.bot-dashboard.is-locked {
  display: none;
}

.bot-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.bot-login-form input {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.bot-login-error {
  min-height: 18px;
  color: var(--danger);
  font-weight: 900;
}

.bot-dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.bot-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.bot-stat-grid .analytics-stat-card strong {
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bot-stat-grid .analytics-stat-card small {
  overflow-wrap: anywhere;
}

.bot-log-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
}

.bot-log-list {
  display: grid;
  gap: 10px;
}

.bot-log-entry {
  display: grid;
  grid-template-columns: 74px 130px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(196, 168, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.bot-log-entry span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.bot-log-entry.failed span {
  color: var(--danger);
}

.bot-log-entry small {
  color: var(--muted);
}

.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.analytics-stat-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-stat-card,
.analytics-table-card,
.ticket-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 168, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(167, 139, 250, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(55, 38, 91, 0.78);
  box-shadow: 0 18px 64px rgba(94, 53, 177, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.12);
}

.analytics-stat-card {
  display: grid;
  min-height: 136px;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.analytics-stat-card span,
.analytics-stat-card small,
.analytics-table th,
.analytics-table small,
.ticket-card small {
  color: var(--muted);
}

.analytics-stat-card span {
  font-size: 14px;
  font-weight: 950;
}

.analytics-stat-card strong {
  color: var(--text);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.analytics-stat-card strong.purple {
  color: var(--cyan);
}

.analytics-stat-card strong.pink {
  color: #f472b6;
}

.analytics-stat-card strong.blue,
.analytics-stat-card strong.cyan {
  color: #c4a8ff;
}

.analytics-stat-card strong.green,
.money {
  color: var(--green);
}

.analytics-detail {
  min-height: 300px;
}

.analytics-table-card {
  padding: 24px;
}

.analytics-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

.analytics-pagination button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 900;
}

.analytics-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.analytics-pagination span {
  color: var(--muted);
  font-weight: 900;
}

.analytics-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  min-width: 0;
}

.analytics-card-heading h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.analytics-card-heading span,
.ticket-status,
.ticket-tag {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius);
  background: rgba(196, 168, 255, 0.1);
  color: var(--soft);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  white-space: normal;
}

.analytics-table-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.analytics-table-wrap::-webkit-scrollbar {
  display: none;
}

.analytics-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 14px 8px;
  text-align: left;
  vertical-align: middle;
}

.analytics-table th:last-child,
.analytics-table td:last-child {
  text-align: right;
}

.analytics-table td strong,
.analytics-table td small {
  display: block;
}

.client-avatar {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-right: 10px;
  overflow: visible;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  font-weight: 950;
  vertical-align: middle;
}

.client-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.client-avatar.has-image span {
  display: none;
}

.client-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid #171325;
  border-radius: 50%;
  background: #8b949e;
}

.client-avatar.status-online::after {
  background: #3ee37f;
}

.client-avatar.status-idle::after {
  background: #f5c542;
}

.client-avatar.status-dnd::after {
  background: #ff5f73;
}

.exchange-type {
  display: inline-flex;
  min-width: 62px;
  justify-content: center;
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 950;
}

.exchange-type.buy {
  border: 1px solid rgba(126, 227, 162, 0.32);
  background: rgba(126, 227, 162, 0.13);
  color: var(--green);
}

.exchange-type.sell {
  border: 1px solid rgba(251, 146, 60, 0.34);
  background: rgba(251, 146, 60, 0.13);
  color: #fb923c;
}

.exchange-type.swap {
  border: 1px solid rgba(96, 165, 250, 0.34);
  background: rgba(96, 165, 250, 0.13);
  color: #93c5fd;
}

.exchange-id-cell {
  text-align: center !important;
}

.exchange-id-cell code {
  display: inline-block;
  max-width: min(240px, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.exchange-arrow {
  color: var(--cyan);
  text-align: center !important;
  font-weight: 950;
}

.ticket-grid-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ticket-card {
  display: grid;
  min-width: 0;
  gap: 18px;
  padding: 28px 26px;
}

.ticket-card h3 {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding-bottom: 22px;
}

.ticket-grid > div {
  min-width: 0;
}

.ticket-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ticket-grid em {
  display: block;
  margin-top: 4px;
  color: rgba(188, 200, 213, 0.66);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ticket-tag {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}

.ticket-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-participants span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(196, 168, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-state {
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.09);
  color: var(--green);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.owner-grid,
.exchanger-grid,
.info-grid,
.rep-grid,
.tos-grid {
  perspective: 1200px;
}

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

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --card-angle: 0deg;
  --glow-x: 50%;
  --glow-y: 0%;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--card-angle)) translateZ(0);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(216, 180, 254, 0.2), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tilt-card.is-hovered::after,
.tilt-card:hover::after {
  opacity: 1;
}

.owner-card,
.exchanger-card,
.info-card,
.rep-card,
.tos-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 168, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(167, 139, 250, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(55, 38, 91, 0.78);
  box-shadow: 0 18px 64px rgba(94, 53, 177, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.owner-card > *,
.exchanger-card > *,
.info-card > *,
.rep-card > *,
.tos-card > * {
  position: relative;
  z-index: 1;
}

.owner-card:hover,
.exchanger-card:hover,
.info-card:hover,
.rep-card:hover,
.tos-card:hover {
  border-color: rgba(205, 231, 255, 0.42);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.13);
}

.owner-card {
  display: grid;
  min-height: 384px;
  justify-items: center;
  align-content: start;
  padding: 34px 28px 30px;
  text-align: center;
}

.owner-card:first-child {
  border-color: rgba(196, 168, 255, 0.56);
  box-shadow:
    0 26px 86px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(196, 168, 255, 0.24),
    0 0 90px rgba(126, 227, 162, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.owner-card::before,
.exchanger-card::before,
.info-card::before,
.tos-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), transparent 42%);
  opacity: 0.78;
  pointer-events: none;
}

.avatar {
  position: relative;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  border: 2px solid rgba(202, 172, 255, 0.64);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(167, 139, 250, 0.2), rgba(240, 171, 252, 0.08)),
    #211735;
  color: var(--cyan);
  font-size: 42px;
  font-weight: 950;
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.22);
  transform: translateZ(32px);
}

.avatar img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.avatar span {
  position: relative;
  z-index: 1;
}

.avatar.has-image span {
  display: none;
}

.verified {
  position: absolute;
  right: -8px;
  bottom: 4px;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #120f24;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  color: #fff;
}

.verified .discord-icon {
  width: 19px;
  height: 19px;
}

.owner-card h3 {
  margin: 22px 0 2px;
  overflow-wrap: anywhere;
  font-size: 30px;
  line-height: 1.1;
  transform: translateZ(24px);
}

.handle,
.member-id {
  color: var(--muted);
  font-size: 14px;
}

.role-name {
  margin-top: 10px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 950;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.status-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8b949e;
  box-shadow: 0 0 12px rgba(139, 148, 158, 0.42);
}

.status-online {
  color: #9ff7be;
}

.status-online i {
  background: #3ee37f;
  box-shadow: 0 0 14px rgba(62, 227, 127, 0.62);
}

.status-idle {
  color: #ffe08a;
}

.status-idle i {
  background: #f5c542;
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.56);
}

.status-dnd {
  color: #ff9ca8;
}

.status-dnd i {
  background: #ff5f73;
  box-shadow: 0 0 14px rgba(255, 95, 115, 0.58);
}

.vouch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid rgba(196, 168, 255, 0.34);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--muted);
  padding: 8px 13px;
}

.vouch-pill strong {
  color: #d8b4fe;
  font-size: 17px;
}

.owner-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.about-box {
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  text-align: left;
}

.about-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.about-box p {
  margin-bottom: 0;
  color: var(--soft);
  line-height: 1.55;
}

.category-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.category-picker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 8px;
  scrollbar-width: none;
}

.category-picker::-webkit-scrollbar {
  display: none;
}

.category-tab,
.arrow-button {
  border: 0;
  cursor: pointer;
  color: var(--muted);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.category-tab {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  background: transparent;
  padding: 14px 20px;
  font-weight: 950;
}

.category-tab::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.56);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--brand), #c084fc);
  color: #fff;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.category-tab.active::before {
  background: #fff;
  box-shadow: none;
}

.arrow-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 28px;
}

.arrow-button:hover,
.category-tab:hover {
  transform: translateY(-2px);
}

.category-title {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 4px 0 28px;
  text-align: center;
}

.category-title::before,
.category-title::after {
  content: "";
  display: block;
  height: 18px;
  opacity: 0.86;
  background:
    linear-gradient(90deg, transparent, rgba(196, 168, 255, 0.52), transparent) center 2px / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(196, 168, 255, 0.95), transparent) center 8px / 100% 5px no-repeat,
    linear-gradient(90deg, transparent, rgba(126, 227, 162, 0.38), transparent) center 16px / 100% 2px no-repeat;
}

.category-title::after {
  transform: scaleX(-1);
}

.category-title h3,
.category-title strong {
  grid-column: 2;
}

.category-title h3 {
  margin: 0;
  border: 1px solid rgba(196, 168, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(12, 14, 24, 0.7);
  padding: 10px 22px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.category-title strong {
  margin-top: -7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.exchanger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.exchanger-card {
  --card-angle: 0deg;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 44px;
  gap: 20px;
  min-height: 248px;
  height: 100%;
  padding: 32px;
  animation: card-enter 0.34s ease both;
}

.exchanger-card:nth-child(even) {
  --card-angle: 0deg;
}

@keyframes card-enter {
  from {
    opacity: 0;
    filter: blur(4px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

.exchanger-card .avatar {
  width: 96px;
  height: 96px;
  border-color: rgba(196, 168, 255, 0.72);
  color: #d8b4fe;
  font-size: 32px;
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.22);
}

.exchanger-card h4 {
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.1;
  transform: translateZ(20px);
}

.exchanger-card .role-name {
  color: #d8b4fe;
  font-size: 16px;
}

.exchanger-card .vouch-pill {
  width: 100%;
  margin-top: 10px;
  justify-content: flex-start;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

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

.info-card,
.rep-card {
  padding: 24px;
}

.info-grid h2 {
  font-size: 25px;
  line-height: 1.1;
}

.info-grid p {
  margin-bottom: 0;
  font-size: 15px;
}

.tos-section {
  max-width: none;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.tos-section > .section-heading,
.tos-box {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.tos-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(7, 8, 15, 0.92), rgba(17, 15, 30, 0.78) 48%, rgba(7, 8, 15, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    url("./assets/clearbanner.png") center / cover no-repeat;
  padding: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.tos-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(196, 168, 255, 0.18), transparent 38%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px);
  opacity: 0.46;
  pointer-events: none;
}

.tos-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.tos-card {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  background: rgba(8, 10, 17, 0.54);
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tos-card:nth-child(3n),
.tos-card:last-child {
  border-right: 0;
}

.tos-card:hover {
  border-color: rgba(196, 168, 255, 0.24);
  background: rgba(18, 20, 32, 0.68);
  box-shadow: none;
}

.tos-card.featured {
  grid-column: span 2;
  min-height: auto;
  align-content: start;
  background: rgba(12, 14, 23, 0.64);
  box-shadow: none;
}

.tos-card.accent {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(18, 16, 24, 0.68);
}

.tos-card h3 {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.05;
  text-align: center;
}

.tos-card h3::before,
.tos-card h3::after {
  content: "";
  display: block;
  height: 14px;
  opacity: 0.82;
  background:
    linear-gradient(90deg, transparent, rgba(196, 168, 255, 0.48), transparent) center 2px / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(196, 168, 255, 0.9), transparent) center 7px / 100% 4px no-repeat,
    linear-gradient(90deg, transparent, rgba(126, 227, 162, 0.34), transparent) center 13px / 100% 2px no-repeat;
}

.tos-card h3::after {
  transform: scaleX(-1);
}

.tos-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.tos-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--soft);
  line-height: 1.55;
}

.tos-card li::marker {
  color: var(--cyan);
}

.tos-card ul + p {
  margin-top: 16px;
}

.reviews-strip {
  max-width: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 168, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(3, 4, 9, 0.64), rgba(3, 4, 9, 0.92));
}

.reviews-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.reviews-heading {
  margin-bottom: 30px;
  text-align: center;
}

.reviews-heading h2 {
  margin: 0;
  color: #eef2f7;
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: 0;
}

.reviews-heading h2 span {
  color: var(--cyan);
}

.review-search {
  display: grid;
  width: min(580px, 100%);
  min-height: 52px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 18px;
}

.review-search svg,
.review-refresh svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-search svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.review-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.review-search input::placeholder {
  color: rgba(188, 200, 213, 0.68);
}

.review-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.review-total,
.review-refresh {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 850;
}

.review-total strong {
  color: var(--text);
}

.review-refresh {
  border: 0;
  background: linear-gradient(180deg, #ffffff, #bfc5d0);
  color: #12151c;
  cursor: pointer;
}

.review-refresh svg {
  width: 17px;
  height: 17px;
}

.review-updated {
  display: none;
  min-height: 0;
  margin: 0;
  color: rgba(188, 200, 213, 0.6);
  font-size: 13px;
  text-align: center;
}

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

.rep-grid.is-marquee {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.vouch-row {
  overflow: hidden;
}

.vouch-track {
  display: flex;
  width: max-content;
  gap: 20px;
  will-change: transform;
}

.vouch-row.to-left .vouch-track {
  animation: vouch-scroll-left 92s linear infinite;
}

.vouch-row.to-right .vouch-track {
  animation: vouch-scroll-right 96s linear infinite;
}

.rep-grid.is-marquee:hover .vouch-track {
  animation-play-state: paused;
}

.rep-grid.is-marquee .rep-card {
  width: clamp(300px, 30vw, 380px);
  flex: 0 0 auto;
}

@keyframes vouch-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 10px));
  }
}

@keyframes vouch-scroll-right {
  from {
    transform: translateX(calc(-50% - 10px));
  }

  to {
    transform: translateX(0);
  }
}

.rep-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rep-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.rep-card span {
  color: #d8b4fe;
  font-size: 13px;
  font-weight: 950;
}

.reviews-strip .rep-card {
  display: grid;
  min-height: 226px;
  gap: 18px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(12, 13, 18, 0.94);
  padding: 24px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.reviews-strip .rep-card::before {
  display: none;
}

.review-author {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.review-avatar {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(196, 168, 255, 0.22));
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.review-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.review-avatar.has-image span {
  display: none;
}

.review-avatar i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 13px;
  height: 13px;
  border: 2px solid #111217;
  border-radius: 50%;
  background: #34d399;
}

.review-author strong {
  display: block;
  overflow: hidden;
  margin: 0 0 3px;
  color: var(--text);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-author span {
  display: block;
  overflow: hidden;
  color: rgba(188, 200, 213, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-strip .rep-card p {
  min-height: 78px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
  color: #edf2f7;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(188, 200, 213, 0.64);
  font-size: 12px;
}

.review-card-footer a {
  color: rgba(238, 242, 247, 0.76);
  font-weight: 900;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding: 28px max(24px, calc((100vw - 1280px) / 2));
  color: var(--muted);
  font-weight: 850;
}

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

  .tilt-card {
    transform: none !important;
  }

  .vouch-track {
    animation: none !important;
    transform: none !important;
  }

  .rep-grid.is-marquee {
    overflow-x: auto;
    mask-image: none;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    min-height: 0;
    padding-block: 12px;
  }

  .desktop-nav {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: var(--radius);
    padding: 6px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .desktop-nav::-webkit-scrollbar {
    display: none;
  }

  .desktop-nav a,
  .nav-dropdown,
  .nav-dropdown-button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 126px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: min(420px, calc(100vh - 150px));
    transform: translateY(-6px);
  }

  .nav-dropdown[data-open="true"] .nav-dropdown-menu {
    transform: translateY(0);
  }

  .discord-button {
    grid-column: 2;
  }

  .hero-content,
  .owner-grid,
  .exchanger-grid,
  .info-grid,
  .rep-grid:not(.is-marquee),
  .analytics-stat-grid,
  .analytics-stat-grid[data-count="3"],
  .bot-stat-grid,
  .ticket-grid-list {
    grid-template-columns: 1fr;
  }

  .analytics-topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    padding: 16px;
  }

  .analytics-brand,
  .analytics-actions {
    justify-self: center;
  }

  .analytics-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
    scrollbar-width: none;
  }

  .analytics-tabs::-webkit-scrollbar {
    display: none;
  }

  .bot-dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bot-log-entry {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: center;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .live-panel {
    max-width: 520px;
  }

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

  .tos-card:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
  }

  .tos-card:nth-child(2n),
  .tos-card:last-child {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .tos-grid,
  .tos-card.featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .tos-card,
  .tos-card:nth-child(2n),
  .tos-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    min-height: 0;
    padding-inline: 16px;
    padding-block: 10px;
  }

  .brand {
    min-width: 0;
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .desktop-nav {
    gap: 6px;
    margin-inline: -2px;
    padding: 5px;
  }

  .desktop-nav a,
  .nav-dropdown-button {
    padding: 9px 12px;
    font-size: 13px;
  }

  .nav-dropdown-menu {
    top: 112px;
    right: 12px;
    left: 12px;
    max-height: min(390px, calc(100vh - 132px));
  }

  .discord-button {
    width: 40px;
    height: 40px;
  }

  .discord-button span {
    display: none;
  }

  .section {
    padding: 54px 16px;
  }

  .analytics-page {
    padding: 12px 12px 54px;
  }

  .bot-page {
    padding: 12px 12px 54px;
  }

  .analytics-topbar {
    gap: 12px;
    padding: 12px;
  }

  .analytics-brand {
    width: 100%;
    justify-content: center;
  }

  .analytics-actions {
    width: 100%;
    justify-content: center;
  }

  .analytics-cta {
    min-height: 40px;
    padding-inline: 14px;
  }

  .analytics-hero {
    padding: 36px 0 28px;
  }

  .analytics-hero h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .analytics-hero p {
    font-size: 17px;
  }

  .analytics-stat-card,
  .analytics-table-card,
  .ticket-card {
    padding: 20px;
  }

  .analytics-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .analytics-tab {
    flex: 0 0 136px;
    min-width: 136px;
    padding: 9px 11px;
  }

  .analytics-tab small {
    font-size: 10px;
  }

  .analytics-stat-grid {
    gap: 14px;
    margin-bottom: 28px;
  }

  .analytics-table {
    min-width: 620px;
  }

  .analytics-table th,
  .analytics-table td {
    padding: 12px 8px;
  }

  .ticket-grid-list {
    gap: 14px;
  }

  .ticket-card {
    gap: 18px;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bot-login-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
    padding: 52px 16px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 7, 13, 0.5), rgba(6, 7, 13, 0.9) 46%, rgba(6, 7, 13, 0.98)),
      linear-gradient(90deg, rgba(6, 7, 13, 0.74), rgba(6, 7, 13, 0.28), rgba(6, 7, 13, 0.74));
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-logo {
    width: 104px;
    height: 104px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 60px);
  }

  h2 {
    font-size: clamp(32px, 12vw, 46px);
  }

  .live-panel {
    padding: 14px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 92px;
    padding: 14px;
  }

  .stat-card strong {
    font-size: 22px;
  }

  .primary-stat strong {
    font-size: 32px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-title {
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    gap: 10px;
  }

  .category-title h3 {
    max-width: min(68vw, 320px);
    overflow-wrap: anywhere;
    padding-inline: 16px;
  }

  .arrow-button {
    display: none;
  }

  .exchanger-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 20px;
  }

  .exchanger-card .avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .exchanger-card .social-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .owner-card {
    min-height: 0;
    padding: 32px 20px;
  }

  .tos-card,
  .info-card,
  .rep-card {
    padding: 20px;
  }

  .tos-card h3 {
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
    gap: 8px;
    font-size: 20px;
  }
}
