:root {
  color-scheme: light;
  --red: #ff3b3b;
  --red-dark: #d22b2b;
  --black: #0c0d11;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f2f5;
  --gray-200: #e1e3e8;
  --gray-500: #6f7480;
  --gray-700: #2a2d36;
  --surface: #11131a;
  --surface-alt: #191c24;
  --accent: var(--red);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  font-family: "Inter", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #ff4545;
  --red-dark: #ff6363;
  --black: #f4f6fb;
  --white: #171a22;
  --gray-50: #0d1017;
  --gray-100: #151922;
  --gray-200: #2a303c;
  --gray-500: #a8afbd;
  --gray-700: #dfe4ee;
  --surface: #07090f;
  --surface-alt: #10131b;
  --accent: var(--red);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--black);
  transition: background 160ms ease, color 160ms ease;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.btn {
  border: none;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--black);
  box-shadow: none;
}

.btn--ghost.btn--on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--light {
  background: var(--white);
  color: var(--red);
}

.btn--full {
  width: 100%;
}

.btn--small {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--login {
  background: var(--accent);
  color: var(--white);
  border-radius: 10px;
}

.topbar {
  background: linear-gradient(90deg, #0f0a0b, #161016);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.topbar__nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-dropdown {
  position: relative;
}

.language-dropdown__trigger {
  min-width: 72px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.language-dropdown__trigger img,
.language-dropdown__menu img,
.mobile-language-link img {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.language-dropdown__trigger .caret {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  transition: transform 160ms ease;
}

.language-dropdown__trigger[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.language-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 112px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #171217;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  display: none;
  z-index: 20;
}

.language-dropdown__menu.open {
  display: grid;
  gap: 3px;
}

.language-dropdown__menu a,
.mobile-language-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-dropdown__menu a {
  padding: 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.language-dropdown__menu a:hover,
.language-dropdown__menu a:focus-visible,
.language-dropdown__menu a[aria-current="true"] {
  background: rgba(255, 69, 69, 0.14);
  color: #fff;
}

.theme-toggle {
  width: 46px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 2px;
  cursor: pointer;
  position: relative;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(255, 59, 59, 0.26);
  transition: transform 160ms ease;
}

:root[data-theme="dark"] .theme-toggle::before {
  transform: translateX(18px);
}

.theme-toggle__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.theme-toggle__icon img {
  width: 14px;
  height: 14px;
  display: block;
}

.mobile-theme-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mobile-theme-toggle img {
  width: 18px;
  height: 18px;
  display: block;
}

.desktop-only {
  display: flex;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon--discord {
  width: 20px;
  height: 20px;
  background-image: url("https://unbelievaboat.com/build/9a823ca6b8fc45606216d185eb2ba419.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon--help {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #0f0a0b, #161016);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0 14px;
  z-index: 50;
}

.mobile-nav__link {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.mobile-nav__more {
  cursor: pointer;
}

.mobile-more__menu {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 140px;
  padding: 6px 0;
  z-index: 20;
}

.mobile-more__menu a {
  display: block;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-more__menu.open {
  display: block;
}

.mobile-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mobile-icon--commands {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='6' r='2' fill='%23ffffff'/%3E%3Ccircle cx='5' cy='12' r='2' fill='%23ffffff'/%3E%3Ccircle cx='5' cy='18' r='2' fill='%23ffffff'/%3E%3Crect x='9' y='5' width='10' height='2' rx='1' fill='%23ffffff'/%3E%3Crect x='9' y='11' width='10' height='2' rx='1' fill='%23ffffff'/%3E%3Crect x='9' y='17' width='10' height='2' rx='1' fill='%23ffffff'/%3E%3C/svg%3E");
}

.mobile-icon--discord {
  background-image: url("https://unbelievaboat.com/build/9a823ca6b8fc45606216d185eb2ba419.svg");
}

.mobile-icon--more {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='6' cy='12' r='2' fill='%23ffffff'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23ffffff'/%3E%3Ccircle cx='18' cy='12' r='2' fill='%23ffffff'/%3E%3C/svg%3E");
}

.user-dropdown {
  position: relative;
}

.user-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.user-dropdown__trigger img,
.avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.avatar-fallback {
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-dropdown__menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 180px;
  padding: 8px 0;
}

.user-dropdown__menu.open {
  display: block;
}

.user-dropdown__menu a {
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.9);
}

.user-dropdown__menu a.logout {
  color: var(--red);
}

.logo {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.logo img {
  width: 34px;
  height: 34px;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero {
  padding: 100px 0 70px;
  background: linear-gradient(135deg, #16090a, #1d0b0c 40%, #0f0a0b);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.landing .hero::before,
.landing .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.landing .hero::before {
  width: min(52vw, 680px);
  height: min(52vw, 680px);
  left: -18vw;
  top: -34vw;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.23), transparent 67%);
  animation: landing-glow-drift 10s ease-in-out infinite alternate;
}

.landing .hero::after {
  width: min(44vw, 560px);
  height: min(44vw, 560px);
  right: -20vw;
  bottom: -30vw;
  background: radial-gradient(circle, rgba(110, 82, 255, 0.14), transparent 68%);
  animation: landing-glow-drift 13s ease-in-out -3s infinite alternate-reverse;
}

.hero__inner {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero__copy--center {
  text-align: center;
  max-width: 720px;
}

.landing-intro > * {
  opacity: 0;
  transform: translateY(18px);
  animation: landing-intro-in 650ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.landing-intro > :nth-child(2) {
  animation-delay: 90ms;
}

.landing-intro > :nth-child(3) {
  animation-delay: 170ms;
}

.landing-intro > :nth-child(4) {
  animation-delay: 250ms;
}

.commands-page {
  padding: 30px 0 80px;
  background: var(--gray-50);
  color: var(--black);
}

.commands-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.commands-hero h1 {
  margin: 6px 0;
}

.syntax-card {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 12px;
  margin: 16px auto;
  box-shadow: var(--shadow);
}

.syntax-row h3 {
  margin: 0 0 6px;
}

.syntax-row p {
  margin: 2px 0;
}

.command-browser {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}

.command-categories {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  color: var(--black);
  box-shadow: var(--shadow);
  height: fit-content;
}

.category-btn {
  border: none;
  background: var(--gray-100);
  color: var(--black);
  padding: 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.category-btn.active {
  background: rgba(255, 59, 59, 0.12);
  border: 1px solid rgba(255, 59, 59, 0.4);
}

.command-listing {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px;
  color: var(--black);
  box-shadow: var(--shadow);
}

.command-listing__controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

#command-search {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--black);
}

.command-actions {
  display: flex;
  gap: 8px;
}

.command-accordion {
  display: grid;
  gap: 8px;
}

.command-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-50);
}

.command-toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  gap: 8px;
  text-align: left;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255, 59, 59, 0.12);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
}

.cmd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.cmd-desc {
  color: var(--gray-500);
}

.aliases {
  flex: 1;
  text-align: right;
  color: var(--gray-500);
}

.chevron {
  transition: transform 0.2s ease;
}

.command-item.open .chevron {
  transform: rotate(180deg);
}

.command-content {
  display: none;
  padding: 0 12px 12px;
  color: var(--black);
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
  padding-top: 12px;
}

.command-item.open .command-content {
  display: block;
}

.command-item p {
  margin: 6px 0;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin: 0 0 4px;
  color: var(--gray-500);
}

.usage-block {
  display: grid;
  gap: 4px;
}

.usage-block code {
  display: inline-block;
}

@media (max-width: 900px) {
  .command-browser {
    grid-template-columns: 1fr;
  }
  .command-categories {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .commands-page {
    padding-top: 20px;
  }
  .commands-hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
  .syntax-card {
    padding: 16px;
  }
  .command-browser {
    gap: 10px;
  }
  .command-categories {
    display: flex;
    gap: 7px;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .command-categories::-webkit-scrollbar {
    display: none;
  }
  .category-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
  }
  .command-listing {
    min-width: 0;
    padding: 8px;
  }
  .command-listing__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #command-search {
    width: 100%;
    min-width: 0;
  }
  .command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .command-actions .btn {
    min-width: 0;
    white-space: normal;
    box-shadow: none;
  }
  .command-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 7px 10px;
    padding: 10px;
  }
  .cmd-header {
    min-width: 0;
    align-items: flex-start;
  }
  .pill {
    flex: 0 0 auto;
    max-width: 46%;
    overflow-wrap: anywhere;
  }
  .cmd-desc {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .aliases {
    grid-column: 1;
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .usage-block code {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .cmd-header {
    display: grid;
    gap: 7px;
  }
  .pill {
    max-width: 100%;
    width: fit-content;
  }
}

.hero__copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  margin: 16px 0;
}

.hero__copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.hero__actions--center {
  justify-content: center;
}

.panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel__title {
  margin-left: auto;
  font-weight: 600;
}

.panel__body {
  display: grid;
  gap: 16px;
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red {
  background: #ff5f56;
}

.dot--yellow {
  background: #ffbd2e;
}

.dot--green {
  background: #27c93f;
}

.badge {
  background: rgba(255, 47, 47, 0.15);
  color: var(--red-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge--ghost {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
}

.text-error {
  color: var(--red);
  font-weight: 600;
}

.chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.features {
  padding: 70px 0 90px;
}

.features--minimal {
  background: var(--gray-50);
}

.feature-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  perspective: 1400px;
}

.feature-card {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-card--ghost {
  background: var(--gray-100);
  box-shadow: none;
}

.feature-card--window {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transform-origin: center;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 320ms ease,
    border-color 320ms ease;
  will-change: transform;
}

.feature-card--window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.12));
  opacity: 0.6;
  pointer-events: none;
}

.window-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.feature-card__body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.feature-visual {
  background: linear-gradient(120deg, rgba(255, 59, 59, 0.12), rgba(255, 59, 59, 0.05));
  border: 1px dashed var(--gray-200);
  border-radius: 10px;
  height: 220px;
  overflow: hidden;
}

.feature-visual--img {
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  border-radius: 14px;
  background-color: #0f0f12;
  cursor: zoom-in;
  transform: translateZ(0);
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 360ms ease,
    border-color 360ms ease;
}

.feature-visual--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255, 59, 59, 0.18), transparent 40%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 280ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card--window:has(.feature-visual--img:hover),
  .feature-card--window:has(.feature-visual--img:focus-visible) {
    transform: translateY(-9px) scale(1.035);
    border-color: rgba(255, 59, 59, 0.35);
    box-shadow: 0 24px 54px rgba(28, 18, 20, 0.18);
    z-index: 3;
  }

  .feature-visual--img:hover,
  .feature-visual--img:focus-visible {
    transform: scale(1.025);
    border-color: rgba(255, 59, 59, 0.44);
    box-shadow: 0 18px 38px rgba(15, 15, 18, 0.2);
  }

  .feature-visual--img:hover::after,
  .feature-visual--img:focus-visible::after {
    opacity: 0.3;
  }
}

.feature-card.is-preview-active {
  transform: translateY(-7px) scale(1.025);
  border-color: rgba(255, 59, 59, 0.38);
  box-shadow: 0 22px 48px rgba(28, 18, 20, 0.18);
  z-index: 3;
}

.has-reveal-js .scroll-reveal.is-visible.feature-card.is-preview-active {
  transform: translateY(-7px) scale(1.025);
}

.feature-card.is-preview-active .feature-visual--img {
  transform: scale(1.018);
  cursor: zoom-out;
}

.has-reveal-js .scroll-reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
}

.has-reveal-js .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes landing-intro-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-glow-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 2vw, 0) scale(1.08);
  }
}

.more-text {
  margin-top: 18px;
  color: var(--gray-500);
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
}

.module-showcase {
  padding: 94px 0 108px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 59, 59, 0.08), transparent 27%),
    radial-gradient(circle at 88% 80%, rgba(110, 82, 255, 0.07), transparent 28%),
    var(--white);
  border-top: 1px solid var(--gray-200);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.landing-cta h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
}

.section-heading > p:last-child,
.landing-cta__inner > p {
  color: var(--gray-500);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

.module-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: color-mix(in srgb, var(--white) 94%, var(--gray-100));
  box-shadow: 0 10px 26px rgba(23, 17, 20, 0.06);
  color: var(--black);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.module-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.16), transparent 68%);
  transition: transform 300ms ease;
}

.module-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 59, 59, 0.1);
  color: var(--red);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.08em;
}

.module-card__icon img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

.module-card__arrow {
  position: absolute;
  top: 25px;
  right: 24px;
  color: var(--red);
  font-size: 1.35rem;
  transition: transform 240ms ease;
}

.module-card h3 {
  margin: 22px 0 9px;
  font-size: 1.28rem;
}

.module-card p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.55;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(255, 59, 59, 0.38);
  box-shadow: 0 20px 42px rgba(32, 20, 23, 0.12);
}

.module-card:hover::before,
.module-card:focus-visible::before {
  transform: scale(1.35);
}

.module-card:hover .module-card__arrow,
.module-card:focus-visible .module-card__arrow {
  transform: translateX(5px);
}

.landing-cta {
  padding: 92px 0 108px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 59, 59, 0.32), transparent 43%),
    linear-gradient(145deg, #14090b, #1e0b0e 48%, #0e0a0d);
  overflow: hidden;
}

.landing-cta__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.landing-cta .eyebrow,
.landing-cta h2 {
  color: #fff;
}

.landing-cta__inner > p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 650px;
  margin: 0 auto;
}

.landing-cta__button {
  margin-top: 30px;
  min-width: min(100%, 310px);
  justify-content: center;
  box-shadow: 0 16px 38px rgba(255, 47, 47, 0.26);
}

@media (max-width: 720px) {
  .landing .hero {
    padding: 72px 0 56px;
  }

  .landing .feature-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing .feature-card.is-preview-active {
    transform: translateY(-4px) scale(1.015);
  }

  .has-reveal-js .landing .scroll-reveal.is-visible.feature-card.is-preview-active {
    transform: translateY(-4px) scale(1.015);
  }

  .landing .feature-visual {
    height: min(62vw, 250px);
  }

  .module-showcase,
  .landing-cta {
    padding: 70px 0 78px;
  }

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

  .module-card {
    min-height: 0;
  }

  .module-card:hover,
  .module-card:focus-visible {
    transform: translateY(-3px);
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .has-reveal-js .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

.cta {
  padding: 50px 0 80px;
}

.cta__inner {
  background: var(--red);
  color: var(--white);
  padding: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.dashboard,
.admin,
.server {
  padding: 40px 0 60px;
}

.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0 10px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0 0 8px;
}

.muted {
  color: var(--gray-500);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.metric {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow);
}

.metric span {
  color: var(--gray-500);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.server-panel {
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--white);
}

.server-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.avatar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  place-items: center;
  color: var(--white);
  text-align: center;
}

.avatar-card--invite {
  border-style: dashed;
}

.avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #2d3038;
}

.empty-state {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.panel--flat {
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.server-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.empty-state {
  padding: 16px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-500);
}

.action-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}

.action-list li {
  background: var(--gray-100);
  padding: 12px;
  border-radius: 12px;
  display: grid;
  gap: 6px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
}

textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  resize: vertical;
}

.inline-card {
  padding: 12px;
  border-radius: 12px;
  background: var(--gray-100);
  display: grid;
  gap: 8px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--gray-200);
  padding: 12px 0 0;
}

.form-actions__buttons {
  display: flex;
  gap: 10px;
}

.status {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.status--success {
  color: #0f9d58;
}

.status--error {
  color: var(--red);
}

.sticky-actions {
  position: fixed;
  bottom: 16px;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.sticky-actions.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-actions__inner {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sticky-actions__buttons {
  display: flex;
  gap: 10px;
}

.currency-input__row,
.color-picker__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-preview {
  padding: 10px 12px;
  background: var(--gray-100);
  border-radius: 10px;
  min-width: 60px;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.color-picker__row input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
}

.currency-preview img {
  width: 24px;
  height: 24px;
  display: block;
}

.currency-display {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  background: var(--white);
  outline: none;
}

.currency-inline-emoji {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.currency-field {
  position: relative;
  width: 100%;
}

.currency-field:not(.currency-field--picker) .prefix-input {
  background: transparent;
  color: transparent;
  caret-color: var(--black);
  position: relative;
  z-index: 1;
}

.currency-overlay {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  pointer-events: none;
  color: var(--black);
}

.currency-overlay.hidden {
  display: none;
}

.currency-placeholder {
  color: var(--gray-500);
}

.currency-panel {
  display: grid;
  gap: 22px;
  max-width: 980px;
}

.currency-panel__main,
.currency-preview-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.currency-field--picker {
  max-width: 520px;
  display: flex;
  align-items: stretch;
  margin-top: 14px;
}

.currency-field--picker .prefix-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.currency-emoji-btn {
  width: 52px;
  border: 1px solid var(--gray-300);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.currency-emoji-btn img,
.discord-embed img {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}

.emoji-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(440px, calc(100vw - 48px));
  height: 430px;
  background: #313338;
  color: #f2f3f5;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  display: none;
  overflow: hidden;
  z-index: 80;
}

.emoji-picker.is-open {
  display: grid;
  grid-template-rows: 1fr 52px;
}

.emoji-picker__rail {
  grid-row: 2;
  background: #2b2d31;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
}

.emoji-picker__rail-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: #b5bac1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.emoji-picker__rail-btn.is-active,
.emoji-picker__rail-btn:hover {
  background: #404249;
}

.emoji-picker__rail-symbol {
  filter: grayscale(1);
  opacity: 0.78;
}

.emoji-picker__rail-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.25);
}

.emoji-picker__body {
  grid-row: 1;
  padding: 10px;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.emoji-picker__search {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #1e1f22;
  color: #f2f3f5;
  padding: 11px 12px;
  outline: none;
}

.emoji-picker__search::placeholder {
  color: #949ba4;
}

.emoji-picker__section {
  margin: 0;
  color: #b5bac1;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.emoji-picker__grid {
  overflow-y: auto;
  display: block;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.emoji-picker__category {
  margin-bottom: 12px;
  scroll-margin-top: 4px;
}

.emoji-picker__section--inline {
  margin: 0 0 6px;
}

.emoji-picker__section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  align-content: start;
  gap: 4px;
}

.emoji-picker__item {
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 26px;
  cursor: pointer;
}

.emoji-picker__item:hover {
  background: #404249;
}

.emoji-picker__item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.discord-message-preview {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  max-width: 680px;
  min-width: 0;
}

.discord-message-preview__body,
.discord-embed,
.discord-embed__desc {
  min-width: 0;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  object-fit: cover;
}

.discord-author {
  font-weight: 700;
  margin-bottom: 6px;
  color: #060607;
  line-height: 1.25;
}

.discord-embed {
  background: #f2f3f5;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 12px 14px;
  color: #060607;
  font-size: 0.95rem;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
}

.discord-embed__author,
.discord-embed__footer {
  color: #4e5058;
  font-size: 0.86rem;
}

.discord-embed__title {
  font-weight: 800;
  margin: 6px 0 10px;
}

.discord-md-line {
  min-height: 1.45em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.discord-md-line--quote {
  border-left: 4px solid #d4d7dc;
  padding-left: 8px;
  color: #2e3338;
}

#tipico-preview-description .discord-md-line:nth-child(n + 2):nth-child(-n + 8) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
}

#tipico-preview-description .discord-md-line:nth-child(n + 2):nth-child(-n + 8) img {
  width: calc(100% / 11);
  max-width: 22px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 1 auto;
}

.discord-md-spacer {
  height: 8px;
}

.discord-embed__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.discord-embed__fields > div {
  display: grid;
  gap: 4px;
}

.discord-embed__fields span {
  color: #4e5058;
  font-size: 0.84rem;
  font-weight: 700;
}

.discord-field-value {
  font-weight: 700;
}

@media (max-width: 720px) {
  .currency-panel__main,
  .currency-preview-card {
    padding: 18px;
  }
  .currency-field--picker {
    max-width: none;
  }
  .discord-embed__fields {
    grid-template-columns: 1fr;
  }
  .discord-message-preview {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }
  .discord-avatar {
    width: 32px;
    height: 32px;
  }
  .discord-embed {
    padding: 10px;
    font-size: 0.86rem;
  }
  .discord-embed__title {
    margin-bottom: 8px;
  }
  .discord-md-line--quote {
    padding-left: 6px;
    border-left-width: 3px;
  }
  .discord-embed__fields {
    gap: 8px;
  }
}

.banned-words {
  display: grid;
  gap: 10px;
}

.banned-words__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banned-words__list {
  display: grid;
  gap: 10px;
}

.banned-words__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.bw-remove {
  white-space: nowrap;
}

.auth,
.legal {
  padding: 60px 0;
}

.auth__card,
.legal__card {
  background: var(--white);
  padding: 36px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.legal__lead {
  max-width: 820px;
  color: var(--gray-600);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal__section {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
}

.legal__section h2 {
  font-size: 1.2rem;
}

.legal__section h3 {
  margin-top: 8px;
  font-size: 1rem;
}

.legal__address {
  color: var(--gray-700);
  font-style: normal;
  line-height: 1.65;
}

.legal__note {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.legal__list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: var(--gray-700);
}

.footer {
  border-top: 1px solid var(--gray-200);
  padding: 32px 0;
  background: var(--white);
}

.footer__inner {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.footer__logo {
  width: 42px;
  height: 42px;
}

.footer__copy {
  color: var(--gray-500);
}

.footer__links {
  display: grid;
  gap: 6px;
  color: var(--gray-500);
}

/* --- Server dashboard shell (Unbelieva style) --- */
.server-shell {
  display: grid;
  grid-template-columns: 86px 240px minmax(0, 1fr);
  min-height: calc(100vh - 80px);
  background: var(--gray-50);
  color: var(--black);
}

.server-shell__sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 12px;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.sidebar-divider {
  width: 60%;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
}

.sidebar-servers {
  display: grid;
  gap: 10px;
  width: 100%;
  justify-items: center;
}

.sidebar-server {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, border-radius 160ms ease;
  position: relative;
}

.sidebar-server:hover,
.sidebar-server:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.sidebar-server.is-active {
  border-radius: 16px;
  border-color: transparent;
  box-shadow: none;
  position: relative;
}

.sidebar-server.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10%;
  height: 80%;
  width: 3px;
  border-radius: 3px;
  background: rgba(255, 59, 59, 0.95);
}

.sidebar-server__img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
}

.sidebar-server.is-active .sidebar-server__img {
  border-radius: 12px;
}

.sidebar-server__placeholder {
  background: linear-gradient(180deg, #edf1f7, #e5e9f0);
}

.sidebar-plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  transition: transform 120ms ease, filter 120ms ease;
}

.sidebar-plus:hover,
.sidebar-plus:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.server-shell__nav {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--black);
}

.nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-header__text h3 {
  margin: 0;
  color: var(--black);
}

.server-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.server-nav__section {
  color: var(--gray-500);
  font-size: 0.82rem;
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.server-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}

.server-nav__link:hover,
.server-nav__link:focus-visible {
  background: var(--gray-100);
  transform: translateX(2px);
}

.server-nav__link.is-active {
  background: rgba(255, 59, 59, 0.14);
  color: var(--black);
}

.server-shell__content {
  min-width: 0;
  padding: 22px 24px 70px;
  background: var(--gray-50);
  color: var(--black);
}

.audit-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 64px;
}

.audit-hero__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.audit-hero__name {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.audit-section {
  display: grid;
  gap: 14px;
}

.audit-section > .label {
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 14px;
  margin-bottom: 2px;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.audit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.audit-card[data-no-details] {
  pointer-events: none;
}

.audit-summary {
  min-height: 78px;
  padding: 16px 18px;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.audit-summary::-webkit-details-marker {
  display: none;
}

.audit-card[data-no-details] .audit-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: default;
}

.audit-card__left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
  flex: 0 0 auto;
}

.audit-text {
  min-width: 0;
  color: var(--gray-700);
  overflow-wrap: anywhere;
}

.audit-text strong {
  color: var(--black);
}

.audit-time {
  font-size: 0.9rem;
  white-space: nowrap;
}

.audit-chevron {
  justify-self: center;
  color: var(--gray-500);
  font-size: 2rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.audit-card[open] .audit-chevron {
  transform: rotate(90deg);
}

.audit-details {
  padding: 16px 32px 20px 76px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  display: grid;
  gap: 8px;
}

.audit-detail-line {
  color: var(--gray-700);
  font-size: 0.95rem;
}

.audit-detail-line strong {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.audit-channel {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 1px 6px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  font-weight: 700;
}

.audit-role {
  vertical-align: middle;
}

.audit-empty {
  border: 1px dashed var(--gray-300);
  border-radius: 12px;
  padding: 32px 18px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.content-panels {
  display: grid;
  gap: 14px;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--gray-700);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
  position: relative;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.icon-btn__svg {
  width: 24px;
  height: 24px;
  transition: transform 150ms ease;
}

.icon-btn__spinner {
  display: none;
  width: 24px;
  height: 24px;
}

.icon-btn.is-loading .icon-btn__svg {
  display: none;
}

.icon-btn.is-loading .icon-btn__spinner {
  display: inline-block;
}

.icon-btn:hover .icon-btn__svg,
.icon-btn:focus-visible .icon-btn__svg {
  transform: rotate(-90deg);
}

.floating-save {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  transform: translateY(6px);
  z-index: 30;
}

.floating-save.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.floating-save__actions {
  display: flex;
  gap: 8px;
}

/* Settings cards */
.prefix-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.cooldown-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 8px;
}

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

/* Replies */
.reply-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reply-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.reply-toggle__btn {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.reply-toggle__btn.is-active {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}

.reply-search {
  position: relative;
}

.reply-search input {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--black);
  padding: 10px 12px 10px 34px;
  border-radius: 10px;
}

.reply-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

.reply-editor {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.reply-editor.hidden {
  display: none;
}

.reply-editor textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.reply-editor__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.reply-error {
  color: var(--red);
}

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

.reply-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 16px 18px 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.05);
}

.reply-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.reply-card:hover .reply-card__actions {
  opacity: 1;
}

@media (hover: none) {
  .reply-card.is-active .reply-card__actions {
    opacity: 1;
  }
}

.reply-pill {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8rem;
  color: var(--gray-700);
}

.reply-btn {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.reply-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.reply-card__count {
  font-size: 0.85rem;
}

.reply-btn--icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.reply-error.shake {
  animation: shake 400ms ease;
}

.reply-editor.shake {
  animation: shake 400ms ease;
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.reply-confirm {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.reply-confirm.show {
  display: flex;
}

.reply-confirm__dialog {
  background: var(--white);
  color: var(--black);
  padding: 16px 18px;
  border-radius: 12px;
  width: min(360px, 92vw);
  box-shadow: 0 24px 52px rgba(0,0,0,0.25);
  display: grid;
  gap: 10px;
}

.reply-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.prefix-desc {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.5;
}

.prefix-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.prefix-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  background: var(--gray-50);
  color: var(--black);
  font-weight: 600;
}

.prefix-input:focus {
  outline: 2px solid rgba(255, 59, 59, 0.25);
  border-color: rgba(255, 59, 59, 0.4);
}

select.prefix-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-500) 50%), linear-gradient(135deg, var(--gray-500) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.color-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--gray-300);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.color-chip input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.color-chip__swatch {
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  background: var(--gray-200);
}

/* Income settings */
.income-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.income-heading h2 {
  margin: 4px 0 8px;
}

.income-heading .muted {
  max-width: 720px;
}

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

.setting-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-card--inline {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.setting-card--inline .setting-card__head {
  flex: 1;
}

.setting-card__head .eyebrow {
  margin: 0;
}

.setting-desc {
  margin: 4px 0 0;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.cooldown-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px 10px;
}

.unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f7f8fb;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0 10px;
  min-width: 0;
  flex: 1 1 0;
}

.unit-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 12px 2px;
  font-size: 0.98rem;
  outline: none;
  color: var(--black);
  text-align: center;
}

.unit-wrap--compact input {
  padding: 10px 2px;
}

.unit-suffix {
  color: var(--gray-500);
  font-weight: 600;
  min-width: 18px;
  text-align: right;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.income-card--narrow {
  max-width: 760px;
}

.role-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.role-chip-list,
.role-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.discord-role {
  --role-color: #747f8d;
  --role-bg: color-mix(in srgb, var(--role-color) 16%, transparent);
  --role-dot: var(--role-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--role-color);
  background: var(--role-bg);
  border: 1px solid color-mix(in srgb, var(--role-color) 28%, transparent);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.discord-role__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--role-dot);
  flex: 0 0 auto;
}

.discord-role button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 0 0 2px;
  cursor: pointer;
}

.role-income-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 520px);
  gap: 20px;
  align-items: start;
}

.role-income-list,
.role-income-editor {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 14px;
}

.role-income-list {
  display: grid;
  gap: 10px;
}

.role-income-add,
.role-income-item {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.role-income-add {
  color: var(--brand);
  font-weight: 800;
}

.role-income-item {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
}

.role-income-item.is-active {
  background: #fff4f4;
  border-color: rgba(255, 59, 59, 0.35);
}

.role-income-empty {
  color: var(--gray-500);
  padding: 8px 2px;
}

.role-income-editor {
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--gray-600);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.range-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: #f7f8fb;
  color: var(--black);
}

@media (max-width: 640px) {
  .range-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .range-sep {
    display: none;
  }
}

.range-sep {
  color: var(--gray-500);
  font-weight: 600;
}

.chip-group {
  display: inline-flex;
  gap: 8px;
}

.chip-btn {
  border: 1px solid var(--gray-200);
  background: #f7f8fb;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.chip-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5f5;
}

.switch {
  position: relative;
  width: 52px;
  height: 28px;
  display: inline-block;
  flex-shrink: 0;
  margin-left: auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-200);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::after {
  transform: translateX(24px);
}

.reply-toggle {
  display: inline-flex;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.reply-toggle__btn {
  border: none;
  background: #f7f8fb;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.reply-toggle__btn.is-active {
  background: var(--white);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge--success {
  background: #e8f9f0;
  color: #1b9a5f;
}

.badge--danger {
  background: #ffecec;
  color: #c02727;
}

.reply-card__actions .reply-btn {
  border-radius: 8px;
  background: #f0f2f7;
}

.reply-card__actions .reply-btn:hover {
  background: #e4e7ef;
}

.reply-confirm__dialog {
  background: var(--white);
  color: var(--black);
  padding: 16px 18px;
  border-radius: 12px;
  width: min(360px, 92vw);
  box-shadow: 0 24px 52px rgba(0,0,0,0.25);
  display: grid;
  gap: 10px;
}

.unit-wrap .unit-suffix {
  visibility: visible;
}

.range-row:not(.show-percent) .unit-suffix {
  visibility: hidden;
}

@media (max-width: 900px) {
  .server-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: auto;
  }
  .server-shell__sidebar {
    min-width: 0;
    flex-direction: row;
    padding: 10px 14px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
  }
  .sidebar-header {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
  }
  .sidebar-divider {
    width: 2px;
    height: 34px;
  }
  .sidebar-servers {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    display: flex;
    gap: 8px;
    justify-items: initial;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .sidebar-servers::-webkit-scrollbar {
    display: none;
  }
  .sidebar-server {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .sidebar-server__img {
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
  }
  .sidebar-server.is-active::before {
    left: 10%;
    top: auto;
    bottom: -7px;
    width: 80%;
    height: 3px;
  }
  .sidebar-divider--bottom {
    display: none;
  }
  .sidebar-plus {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .server-shell__nav {
    min-width: 0;
    padding: 12px 14px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
  }
  .nav-header__text {
    min-width: 0;
  }
  .nav-header__text h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .server-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .server-nav::-webkit-scrollbar {
    display: none;
  }
  .server-nav li {
    flex: 0 0 auto;
  }
  .server-nav__section {
    display: none;
  }
  .server-nav__link {
    padding: 8px 11px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    white-space: nowrap;
  }
  .server-nav__link:hover,
  .server-nav__link:focus-visible {
    transform: none;
  }
  .server-shell__content {
    width: 100%;
    padding: 20px 18px 110px;
    overflow: hidden;
  }
  .income-card {
    grid-template-columns: 1fr;
  }
  .setting-card--inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .reply-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cooldown-row {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  }
  .role-income-layout {
    grid-template-columns: 1fr;
  }
  .currency-panel,
  .prefix-card,
  .income-wrap,
  .reply-section,
  .audit-section {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    width: calc(100% - 28px);
    gap: 10px;
  }
  .topbar__left,
  .topbar__actions {
    min-width: 0;
  }
  .topbar__actions {
    gap: 8px;
  }
  .user-dropdown__trigger {
    max-width: 142px;
    padding: 6px 8px;
  }
  .user-dropdown__trigger span:not(.caret) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .server-shell__content {
    padding: 18px 14px 116px;
  }
  .audit-hero {
    justify-content: flex-start;
    margin: 2px 0 28px;
  }
  .audit-hero__avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
  }
  .audit-hero__name {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .audit-summary {
    grid-template-columns: 1fr 24px;
    align-items: start;
  }
  .audit-card[data-no-details] .audit-summary {
    grid-template-columns: 1fr;
  }
  .audit-time {
    grid-column: 1 / -1;
    padding-left: 54px;
  }
  .audit-details {
    padding: 14px 18px 18px;
  }
  .audit-card__left {
    align-items: flex-start;
  }
  .audit-avatar {
    width: 36px;
    height: 36px;
  }
  .audit-time {
    padding-left: 48px;
    white-space: normal;
  }
  .floating-save {
    left: 12px;
    right: 12px;
    bottom: 82px;
    justify-content: space-between;
  }
  .currency-panel__main,
  .currency-preview-card,
  .prefix-card,
  .setting-card,
  .role-income-list,
  .role-income-editor {
    padding: 16px;
  }
  .currency-field--picker {
    width: 100%;
  }
  .emoji-picker {
    position: fixed;
    inset: auto 10px 82px;
    width: auto;
    max-width: none;
    max-height: min(560px, calc(100vh - 150px));
  }
  .reply-bar {
    align-items: stretch;
  }
  .reply-search {
    flex: 1 1 100%;
    width: 100%;
  }
  .reply-search input {
    width: 100%;
  }
  .reply-toggle {
    max-width: 100%;
  }
  .reply-toggle__btn {
    flex: 1 1 auto;
  }
  .reply-card {
    min-width: 0;
  }
  .reply-card__meta,
  .reply-editor__meta,
  .prefix-actions {
    flex-wrap: wrap;
  }
  .role-picker-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .server-board {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .server-board__header {
    flex-direction: column;
    align-items: stretch;
  }
  .board-actions {
    align-self: flex-start;
  }
  .bubble-grid {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 18px 10px;
  }
  .bubble__img {
    width: 68px;
    height: 68px;
  }
  .bubble__label {
    max-width: 96px;
  }
  .commands-page,
  .tags-page,
  .dashboard--bubbles,
  .legal,
  .auth {
    overflow: hidden;
  }
  .commands-page .container,
  .tags-page .container,
  .dashboard--bubbles .container,
  .legal .container,
  .auth .container {
    width: calc(100% - 28px);
  }
}

@media (max-width: 420px) {
  .topbar__inner {
    width: calc(100% - 20px);
  }
  .logo {
    gap: 7px;
    font-size: 1rem;
  }
  .logo img {
    width: 30px;
    height: 30px;
  }
  .user-dropdown__trigger {
    max-width: none;
    gap: 4px;
  }
  .user-dropdown__trigger span:not(.caret) {
    display: none;
  }
  .server-shell__sidebar {
    padding-inline: 10px;
  }
  .server-shell__nav {
    padding-inline: 10px;
  }
  .server-shell__content {
    padding-inline: 10px;
  }
  .cooldown-row,
  .cooldown-row.cooldown-row--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chip-group {
    width: 100%;
  }
  .chip-btn {
    flex: 1 1 0;
  }
  .floating-save {
    align-items: stretch;
    flex-direction: column;
  }
  .floating-save__actions > * {
    flex: 1 1 0;
  }
}

/* Dashboard bubbles */
.dashboard--bubbles {
  padding: 20px 0 60px;
}

.server-board {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
  color: var(--black);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.server-board--ghost {
  background: var(--gray-50);
}

.server-board__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.server-board__header h1,
.server-board__header h2 {
  margin: 4px 0;
  letter-spacing: -0.01em;
}

.server-board .muted {
  color: var(--gray-500);
}

.board-actions .pill--light {
  background: rgba(255, 59, 59, 0.12);
  border-color: rgba(255, 59, 59, 0.28);
  color: var(--black);
  font-weight: 700;
}

.bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px 18px;
  align-items: start;
}

.bubble {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--black);
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.bubble:hover,
.bubble:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.bubble__img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  border: 1px solid var(--gray-200);
}

.bubble__placeholder {
  background: linear-gradient(180deg, #e8eaef, #dfe3ea);
}

.bubble__label {
  max-width: 110px;
  font-size: 0.95rem;
  color: var(--gray-700);
  word-break: break-word;
}

.bubble__hint {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.bubble--invite .bubble__img {
  border-style: dashed;
  border-color: rgba(255, 59, 59, 0.4);
}

/* Tags page */
.tags-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tag-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.tag-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
}

.tag-card__headings {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 12px;
}

.tag-table {
  display: grid;
  gap: 10px;
}

.tag-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  line-height: 1.25;
}

.tag-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tag-row--head {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 8px;
}

.pill--light {
  background: rgba(255, 59, 59, 0.08);
  color: var(--black);
  border: 1px solid rgba(255, 59, 59, 0.16);
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
}

.copy-tag {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 59, 0.22);
  background: rgba(255, 59, 59, 0.08);
  color: var(--black);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.copy-tag:hover,
.copy-tag:focus-visible {
  transform: translateY(-1px);
  background: var(--white);
  border-color: rgba(255, 59, 59, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.tag-output-item {
  padding: 6px 4px;
  background: transparent;
  border: none;
  color: var(--gray-600);
  font-weight: 400;
  font-size: 0.95rem;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 9999;
}

.copy-toast.is-visible {
  opacity: 0.96;
  transform: translateX(-50%) translateY(0);
}

.tag-suggest {
  position: fixed;
  z-index: 1200;
  display: none;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.tag-suggest.is-open {
  display: grid;
  gap: 4px;
}

.tag-suggest__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  text-align: left;
}

.tag-suggest__item:hover,
.tag-suggest__item:focus-visible {
  background: var(--gray-100);
}

.tag-suggest__item span {
  display: grid;
  gap: 1px;
}

.tag-suggest__item small,
.tag-suggest__item em {
  color: var(--gray-500);
  font-size: 0.78rem;
  font-style: normal;
}

:root[data-theme="dark"] .btn {
  color: #ffffff;
}

:root[data-theme="dark"] .btn--ghost {
  color: var(--black);
  background: rgba(255, 255, 255, 0.02);
}

:root[data-theme="dark"] .btn--light {
  background: #ffffff;
  color: var(--red);
}

:root[data-theme="dark"] .commands-page,
:root[data-theme="dark"] .dashboard,
:root[data-theme="dark"] .dashboard--bubbles,
:root[data-theme="dark"] .server-shell,
:root[data-theme="dark"] .tags-page,
:root[data-theme="dark"] .auth,
:root[data-theme="dark"] .legal {
  background: radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.13), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(255, 69, 69, 0.1), transparent 30%),
    var(--gray-50);
  color: var(--black);
}

:root[data-theme="dark"] .syntax-card,
:root[data-theme="dark"] .command-browser,
:root[data-theme="dark"] .command-categories,
:root[data-theme="dark"] .command-item,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .server-panel,
:root[data-theme="dark"] .avatar-card,
:root[data-theme="dark"] .inline-card,
:root[data-theme="dark"] .currency-panel__main,
:root[data-theme="dark"] .currency-preview-card,
:root[data-theme="dark"] .auth__card,
:root[data-theme="dark"] .legal__card,
:root[data-theme="dark"] .server-shell__nav,
:root[data-theme="dark"] .server-shell__content,
:root[data-theme="dark"] .audit-card,
:root[data-theme="dark"] .prefix-card,
:root[data-theme="dark"] .reply-card,
:root[data-theme="dark"] .setting-card,
:root[data-theme="dark"] .role-income-list,
:root[data-theme="dark"] .role-income-editor,
:root[data-theme="dark"] .tag-card {
  background: rgba(23, 26, 34, 0.9);
  border-color: var(--gray-200);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .server-shell__sidebar {
  background: #080a10;
  border-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] #command-search,
:root[data-theme="dark"] .prefix-input,
:root[data-theme="dark"] .range-input,
:root[data-theme="dark"] .unit-wrap,
:root[data-theme="dark"] .chip-btn,
:root[data-theme="dark"] .reply-toggle__btn,
:root[data-theme="dark"] .role-income-add,
:root[data-theme="dark"] .role-income-item,
:root[data-theme="dark"] .tag-suggest {
  background: #11151e;
  color: var(--black);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] #command-search::placeholder {
  color: #7f8797;
}

:root[data-theme="dark"] .chip-btn.is-active,
:root[data-theme="dark"] .reply-toggle__btn.is-active,
:root[data-theme="dark"] .role-income-item.is-active {
  background: rgba(255, 69, 69, 0.12);
  border-color: rgba(255, 69, 69, 0.38);
}

:root[data-theme="dark"] .audit-details,
:root[data-theme="dark"] .command-content,
:root[data-theme="dark"] .tag-suggest__item:hover,
:root[data-theme="dark"] .tag-suggest__item:focus-visible {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .badge--success {
  background: rgba(46, 204, 113, 0.16);
  color: #75e0a2;
}

:root[data-theme="dark"] .badge--danger {
  background: rgba(255, 69, 69, 0.16);
  color: #ff8b8b;
}

:root[data-theme="dark"] .reply-card__actions .reply-btn,
:root[data-theme="dark"] .copy-tag {
  background: #202633;
  color: var(--black);
}

:root[data-theme="dark"] .floating-save {
  background: #171a22;
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .switch-track::after {
  background: #ffffff;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .mobile-nav,
:root[data-theme="dark"] .hero {
  color: #f6f7fb;
}

:root[data-theme="dark"] .logo,
:root[data-theme="dark"] .user-dropdown__trigger,
:root[data-theme="dark"] .icon-link,
:root[data-theme="dark"] .topbar__nav,
:root[data-theme="dark"] .hero__copy h1 {
  color: #f6f7fb;
}

:root[data-theme="dark"] .topbar__nav {
  color: rgba(246, 247, 251, 0.82);
}

:root[data-theme="dark"] .user-dropdown__trigger {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .user-dropdown__trigger .caret {
  color: rgba(246, 247, 251, 0.72);
}

:root[data-theme="dark"] .sidebar-server__placeholder {
  background: linear-gradient(180deg, #303848, #202633);
  color: #f6f7fb;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .bubble__placeholder {
  background: linear-gradient(180deg, #303848, #202633);
  color: #f6f7fb;
  border-color: rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .discord-author,
:root[data-theme="dark"] .discord-embed {
  color: #dbdee1;
}

:root[data-theme="dark"] .discord-embed {
  background: #2b2d31;
}

:root[data-theme="dark"] .discord-embed__author,
:root[data-theme="dark"] .discord-embed__footer,
:root[data-theme="dark"] .discord-embed__fields span {
  color: #b5bac1;
}

:root[data-theme="dark"] .discord-md-line--quote {
  border-left-color: #4e5058;
  color: #dbdee1;
}

:root[data-theme="dark"] .module-showcase {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 69, 69, 0.1), transparent 27%),
    radial-gradient(circle at 88% 80%, rgba(110, 82, 255, 0.08), transparent 28%),
    var(--gray-50);
}

:root[data-theme="dark"] .module-card {
  background: #171b24;
  color: var(--black);
  border-color: var(--gray-200);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .module-card__icon {
  background: rgba(255, 69, 69, 0.14);
  color: #ff7676;
}

@media (max-width: 540px) {
  .tag-row,
  .tag-card__headings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .desktop-only {
    display: none;
  }
  .topbar__inner {
    justify-content: space-between;
  }
  .mobile-nav {
    display: flex;
    gap: 6px;
  }
  body {
    padding-bottom: 72px; /* space for mobile nav */
  }
  .dashboard__header,
  .admin__header,
  .server__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .server-board {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .server-board__header {
    flex-direction: column;
    align-items: stretch;
  }
  .board-actions {
    align-self: flex-start;
  }
  .bubble-grid {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 18px 10px;
  }
  .bubble__img {
    width: 68px;
    height: 68px;
  }
  .bubble__label {
    max-width: 96px;
  }
}

/* --- Server dashboard shell (Unbelieva style) --- */
