:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #121212;
  --line: #2b2b2b;
  --line-soft: #1f1f1f;
  --text: #f5f5f5;
  --muted: #ffffff;
  --accent: #f0f0f0;
  --accent-2: #d4d4d4;
  --danger: #d4d4d4;
  --warn: #d4d4d4;
  --cx: 0px;
  --cy: 0px;
}

/* GitBook-style wiki surface */
body.wiki-page {
  margin: 0;
  overflow-x: hidden;
  background: #1f1f1f;
  color: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.wiki-app {
  --wiki-accent: #9fe6ff;
  --wiki-bg: #1f1f1f;
  --wiki-panel: #252525;
  --wiki-panel-soft: #2b2b2b;
  --wiki-border: #3c3c3c;
  --wiki-text: #ffffff;
  --wiki-muted: #9b9b9b;
  --wiki-faint: #747474;
  min-height: 100vh;
  background: var(--wiki-bg);
}

.wiki-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 65px;
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(280px, 386px) 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid #303030;
  background: rgba(31, 31, 31, 0.96);
  backdrop-filter: blur(14px);
}

.wiki-brand {
  width: 32px;
  height: 32px;
  justify-self: start;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.wiki-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: none;
}

.wiki-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wiki-search {
  width: 100%;
  height: 39px;
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid #454545;
  border-radius: 8px;
  background: #1d1d1d;
  box-shadow: none;
  color: var(--wiki-muted);
}

.wiki-search:focus-within {
  border-color: color-mix(in srgb, var(--wiki-accent) 48%, #454545);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wiki-accent) 16%, transparent);
}

.wiki-search__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
  opacity: 0.74;
}

.wiki-search__icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.72);
}

.wiki-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dedede;
  font: 600 14px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.wiki-search input::placeholder {
  color: #8e8e8e;
}

.wiki-search__hint {
  min-width: 42px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  background: #242424;
  color: #c9c9c9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.wiki-layout {
  width: min(1380px, calc(100vw - 48px));
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: 280px minmax(0, 768px);
  gap: 56px;
  margin: 0 auto;
  padding: 24px 0 38px;
}

.wiki-sidebar {
  min-width: 0;
}

.wiki-sidebar__inner {
  position: sticky;
  top: 89px;
  max-height: calc(100vh - 112px);
  display: block;
  overflow-y: auto;
  padding: 9px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a transparent;
}

.wiki-nav {
  display: grid;
  gap: 23px;
}

.wiki-nav-group {
  display: grid;
  gap: 10px;
}

.wiki-nav-section-toggle {
  min-height: 16px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor: default;
}

.wiki-nav-section-toggle:hover {
  background: transparent;
}

.wiki-nav-section-toggle > .wiki-nav-chevron {
  display: none;
}

.wiki-nav-section .wiki-nav-group__title,
.wiki-nav-section .wiki-nav-section-toggle .wiki-nav-group__title {
  padding: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wiki-nav-section .wiki-nav-group__title img {
  display: none;
}

.wiki-nav-group__pages,
.wiki-nav-group__pages.is-open {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  border-left: 0;
}

.wiki-nav-item,
.wiki-nav-folder-row {
  display: grid;
  gap: 2px;
}

.wiki-nav-folder-row {
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
}

.wiki-nav-link,
.wiki-nav-link--folder {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a8a8a8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
}

.wiki-nav-link:hover,
.wiki-nav-link--folder:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #d5d5d5;
}

.wiki-nav-link.is-active,
.wiki-nav-children .wiki-nav-link.is-active {
  background: transparent !important;
  color: var(--wiki-accent) !important;
  box-shadow: none !important;
}

.wiki-nav-link.is-active::before,
.wiki-nav-children .wiki-nav-link.is-active::before {
  display: none;
}

.wiki-nav-link__label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wiki-nav-link__label span {
  min-width: 0;
  overflow: hidden;
  color: inherit !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-nav-link__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.72;
  -webkit-mask-image: var(--wiki-nav-icon);
  mask-image: var(--wiki-nav-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.wiki-nav-folder-toggle {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #808080;
}

.wiki-nav-folder-toggle:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #d0d0d0;
}

.wiki-nav-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.wiki-nav-folder-toggle.is-open .wiki-nav-chevron {
  transform: rotate(90deg);
}

.wiki-nav-children {
  display: grid;
  gap: 2px;
  margin: 2px 0 4px 20px;
  padding-left: 14px;
  border-left: 1px solid #3a3a3a !important;
}

.wiki-nav-empty,
.wiki-toc__empty {
  padding: 0 12px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.45;
}

.wiki-content {
  width: 100%;
  max-width: 768px;
  min-width: 0;
}

.wiki-article {
  min-height: calc(100vh - 127px);
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-article__cover {
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #343434;
}

.wiki-article__cover img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.wiki-article__head {
  display: grid;
  gap: 15px;
  margin: 0 0 28px;
}

.wiki-article__breadcrumb {
  justify-self: start;
  color: var(--wiki-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.wiki-article__breadcrumb:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiki-article__title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wiki-article__title-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: #8f949d;
  -webkit-mask-image: var(--wiki-page-title-icon);
  mask-image: var(--wiki-page-title-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.wiki-article__head h1,
.wiki-markdown > h1:first-child {
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.wiki-markdown {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.wiki-markdown h1,
.wiki-markdown h2,
.wiki-markdown h3,
.wiki-markdown h4 {
  margin: 34px 0 12px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.wiki-markdown h1 {
  font-size: 32px;
}

.wiki-markdown h2 {
  font-size: 26px;
}

.wiki-markdown h3 {
  font-size: 21px;
}

.wiki-markdown h4 {
  font-size: 17px;
}

.wiki-markdown p,
.wiki-markdown ul,
.wiki-markdown ol {
  margin: 0 0 16px;
}

.wiki-markdown li + li {
  margin-top: 5px;
}

.wiki-markdown a {
  color: var(--wiki-accent);
  text-decoration: none;
}

.wiki-markdown a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiki-callout,
.wiki-markdown blockquote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  padding: 18px 16px;
  border: 0;
  border-radius: 6px;
  background: #2b2b2b !important;
  box-shadow: none !important;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.wiki-callout__icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
  background: #8e8e8e !important;
}

.wiki-code {
  margin: 18px 0;
  border: 1px solid #343434;
  border-radius: 8px;
  background: #161616;
  box-shadow: none;
}

.wiki-code code,
.wiki-markdown code {
  color: #f4f4f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.wiki-markdown code {
  border-radius: 5px;
  background: #2b2b2b;
}

.wiki-table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid #343434;
  border-radius: 8px;
}

.wiki-table th,
.wiki-table td {
  border-bottom: 1px solid #343434;
  color: #e9e9e9;
}

.wiki-table th {
  background: #252525;
  color: #ffffff;
}

.wiki-page-card,
.wiki-next-card {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  box-shadow: none;
}

.wiki-page-card {
  margin: 18px 0 0;
}

.wiki-page-card:hover,
.wiki-next-card:hover {
  border-color: #555555;
  background: rgba(255, 255, 255, 0.025);
}

.wiki-next-card {
  margin-top: auto;
}

.wiki-next-card small {
  display: block;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--wiki-accent) 62%, #ffffff);
  font-size: 12px;
  line-height: 1.2;
}

.wiki-next-card strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
}

.wiki-next-card__arrow,
.wiki-page-card__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: relative;
}

.wiki-next-card__arrow::before,
.wiki-page-card__arrow::before {
  content: "";
  position: absolute;
  inset: 3px 5px;
  border-top: 1.8px solid #8f8f8f;
  border-right: 1.8px solid #8f8f8f;
  transform: rotate(45deg);
}

.wiki-toc {
  display: none;
}

.wiki-image-lightbox__content {
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .wiki-header {
    grid-template-columns: 220px minmax(240px, 1fr);
  }

  .wiki-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .wiki-header {
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 12px 16px;
  }

  .wiki-layout {
    width: min(100% - 32px, 768px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 18px;
  }

  .wiki-sidebar__inner {
    position: static;
    max-height: 280px;
    padding-bottom: 12px;
    border-bottom: 1px solid #303030;
  }

  .wiki-article {
    min-height: auto;
    padding-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .wiki-header {
    grid-template-columns: 1fr;
  }

  .wiki-brand {
    display: none;
  }

  .wiki-article__title-row {
    gap: 13px;
  }

  .wiki-article__title-icon {
    width: 30px;
    height: 30px;
  }

  .wiki-article__head h1,
  .wiki-markdown > h1:first-child {
    font-size: 31px;
  }
}

/* Player cabinet hero */
body.profile-redesign-page .profile-profile-card {
  position: relative;
  min-height: 335px;
  grid-template-columns: minmax(280px, 1fr) minmax(178px, 0.54fr) minmax(190px, 0.58fr);
  align-items: end;
  overflow: hidden;
  padding: 0 28px 22px 34px;
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.96) 0%, rgba(15, 18, 20, 0.9) 48%, rgba(38, 57, 74, 0.82) 73%, rgba(28, 28, 28, 0.98) 73%),
    #101112;
}

body.profile-redesign-page .profile-profile-card[data-subscription-tone="silver"] {
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.96) 0%, rgba(20, 28, 35, 0.9) 48%, rgba(74, 95, 119, 0.82) 73%, rgba(29, 29, 30, 0.98) 73%),
    #101112;
}

body.profile-redesign-page .profile-profile-card[data-subscription-tone="gold"] {
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.96) 0%, rgba(29, 24, 18, 0.92) 48%, rgba(118, 84, 46, 0.78) 73%, rgba(31, 29, 25, 0.98) 73%),
    #11100e;
}

body.profile-redesign-page .profile-player-showcase {
  min-width: 0;
  display: grid;
  align-items: end;
  gap: 6px;
}

body.profile-redesign-page .profile-player-showcase__skin {
  position: absolute;
  left: 26px;
  bottom: 68px;
  width: min(250px, 32vw);
  height: 238px;
  display: grid;
  align-items: end;
  justify-items: center;
  perspective: 820px;
  pointer-events: none;
}

body.profile-redesign-page .profile-player-showcase__skin::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 8%;
  bottom: 0;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  filter: blur(10px);
}

body.profile-redesign-page .profile-player-showcase__skin img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  transform: rotateY(-17deg) rotateX(3deg);
  transform-origin: bottom center;
  filter: drop-shadow(18px 20px 24px rgba(0, 0, 0, 0.56));
}

body.profile-redesign-page .profile-player-showcase__skin.is-empty img {
  width: 146px;
  height: 236px;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

body.profile-redesign-page .profile-player-showcase__skin.is-empty::after {
  content: "?";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) rotateY(-17deg);
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.45), 0 16px 24px rgba(0, 0, 0, 0.45);
}

body.profile-redesign-page .profile-profile-card__identity {
  position: relative;
  z-index: 2;
  align-self: end;
}

body.profile-redesign-page .profile-profile-card__name h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  text-transform: uppercase;
}

body.profile-redesign-page .profile-minecraft-compact {
  position: relative;
  z-index: 2;
  min-height: 62px;
  padding: 10px;
  border-radius: 10px;
  align-self: end;
  background: #2f2f30;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

body.profile-redesign-page .profile-minecraft-compact.hidden {
  display: none !important;
}

body.profile-redesign-page .profile-minecraft-compact__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

body.profile-redesign-page .profile-minecraft-compact__head img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  image-rendering: pixelated;
}

body.profile-redesign-page .profile-minecraft-compact__head div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.profile-redesign-page .profile-minecraft-compact strong,
body.profile-redesign-page .profile-minecraft-compact small {
  color: #fff;
}

body.profile-redesign-page .profile-minecraft-compact span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 760;
}

body.profile-redesign-page .profile-minecraft-compact span img {
  width: 14px;
  height: 14px;
  border-radius: 0;
  object-fit: contain;
  image-rendering: auto;
}

body.profile-redesign-page .profile-minecraft-compact > small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 700;
}

body.profile-redesign-page .profile-subtle-subscription {
  position: relative;
  z-index: 2;
  min-height: 62px;
  border: 0;
  border-radius: 10px;
  align-self: end;
  cursor: pointer;
  background: #2f2f30;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

body.profile-redesign-page .profile-subtle-subscription:hover,
body.profile-redesign-page .profile-subtle-subscription:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: #383839;
}

body.profile-redesign-page .profile-subtle-subscription strong {
  font-size: 13px;
  line-height: 1.2;
}

body.profile-redesign-page .profile-subtle-subscription small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

body.profile-redesign-page .profile-mini-subscription {
  width: 100%;
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

body.profile-redesign-page .profile-mini-subscription i {
  position: relative;
  height: 9px;
  min-width: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

body.profile-redesign-page .profile-mini-subscription i[data-tier="issledovatel"] {
  background: #ff717b;
}

body.profile-redesign-page .profile-mini-subscription i[data-tier="puteshestvennik"] {
  background: #5b79ff;
}

body.profile-redesign-page .profile-mini-subscription i[data-tier="traktorist"] {
  background: #ffe95f;
}

body.profile-redesign-page .profile-mini-subscription b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.52);
}

body.profile-redesign-page .profile-inventory-quantity {
  display: none;
}

body.profile-redesign-page .profile-cabinet-modal {
  position: fixed;
  inset: 0;
  z-index: 4700;
  display: grid;
  place-items: center;
  padding: 18px;
}

body.profile-redesign-page .profile-cabinet-modal.hidden {
  display: none !important;
}

body.profile-redesign-page .profile-cabinet-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

body.profile-redesign-page .profile-cabinet-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 18px;
  background: #171819;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54);
}

body.profile-redesign-page .profile-cabinet-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

body.profile-redesign-page .profile-cabinet-modal__head {
  display: grid;
  gap: 5px;
  padding-right: 42px;
}

body.profile-redesign-page .profile-cabinet-modal__head span,
body.profile-redesign-page .profile-subscription-dialog__summary span,
body.profile-redesign-page .profile-inventory-dialog__preview span:first-child,
body.profile-redesign-page .profile-inventory-dialog__quantity span {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

body.profile-redesign-page .profile-cabinet-modal__head h2,
body.profile-redesign-page .profile-inventory-dialog__preview h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

body.profile-redesign-page .profile-subscription-dialog__body,
body.profile-redesign-page .profile-inventory-dialog__body {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

body.profile-redesign-page .profile-subscription-dialog__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.profile-redesign-page .profile-subscription-dialog__summary > div,
body.profile-redesign-page .profile-subscription-dialog__stage {
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

body.profile-redesign-page .profile-subscription-dialog__summary strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 18px;
}

body.profile-redesign-page .profile-subscription-dialog__timeline {
  display: grid;
  gap: 8px;
}

body.profile-redesign-page .profile-subscription-dialog__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
}

body.profile-redesign-page .profile-subscription-dialog__stage.is-current {
  background: rgba(125, 187, 255, 0.12);
}

body.profile-redesign-page .profile-subscription-dialog__stage span,
body.profile-redesign-page .profile-subscription-dialog__stage strong {
  color: #fff;
  font-size: 14px;
}

body.profile-redesign-page .profile-subscription-dialog__stage small,
body.profile-redesign-page .profile-subscription-dialog__empty span,
body.profile-redesign-page .profile-inventory-dialog__preview p {
  color: var(--profile-soft);
  font-size: 13px;
  line-height: 1.45;
}

body.profile-redesign-page .profile-subscription-dialog__stage small {
  grid-column: 1 / -1;
}

body.profile-redesign-page .profile-inventory-dialog__preview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

body.profile-redesign-page .profile-inventory-dialog__image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
}

body.profile-redesign-page .profile-inventory-dialog__image img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

body.profile-redesign-page .profile-inventory-dialog__image span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 32px;
  min-height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

body.profile-redesign-page .profile-inventory-dialog__quantity {
  display: grid;
  gap: 8px;
}

body.profile-redesign-page .profile-inventory-dialog__quantity input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
}

body.profile-redesign-page .profile-inventory-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 940px) {
  body.profile-redesign-page .profile-profile-card {
    min-height: 520px;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 260px 18px 18px;
  }

  body.profile-redesign-page .profile-player-showcase__skin {
    left: 50%;
    bottom: 238px;
    width: 210px;
    transform: translateX(-50%);
  }
}

@media (max-width: 580px) {
  body.profile-redesign-page .profile-profile-card {
    min-height: 560px;
    padding-top: 280px;
  }

  body.profile-redesign-page .profile-profile-card__identity,
  body.profile-redesign-page .profile-inventory-dialog__preview,
  body.profile-redesign-page .profile-subscription-dialog__summary {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .profile-inventory-dialog__image {
    width: 132px;
  }

  body.profile-redesign-page .profile-inventory-dialog__actions {
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #9b9b9b #0b0b0b;
}

html {
  scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.95), rgba(6, 6, 6, 0.98));
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6f6f6f, #d4d4d4);
  border-radius: 999px;
  border: 2px solid rgba(10, 10, 10, 0.95);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8c8c8c, #f0f0f0);
}

body.is-splashing {
  overflow: hidden;
}

.page {
  width: min(1580px, calc(100% + 4px));
  margin: 0 auto 0;
  display: grid;
  gap: 20px;
  transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.9s ease;
}

body.is-splashing .page {
  transform: translateY(720px);
  opacity: 0;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
}

.splash-screen__center {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.splash-screen__logo-wrap {
  width: 134px;
  height: 134px;
  display: grid;
  place-items: center;
  transform: translateX(0);
}

.splash-screen__logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.home-banner-bg {
  display: none !important;
}

.home-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(30, 25, 12, 0.58), rgba(0, 0, 0, 0.7) 48%, rgba(8, 22, 32, 0.62)),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.84));
}

.splash-screen__title {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-family: 'Rostov', Inter, Segoe UI, Arial, sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.splash-screen--play .splash-screen__logo-wrap {
  animation: splash-logo-shift 1.1s cubic-bezier(0.2, 0.85, 0.2, 1) 0.35s forwards;
}

.splash-screen--play .splash-screen__title {
  animation: splash-title-show 1.25s cubic-bezier(0.2, 0.85, 0.2, 1) 0.55s forwards;
}

.splash-screen--done {
  opacity: 0;
  transition: opacity 0.36s ease;
  pointer-events: none;
}

@keyframes splash-logo-shift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-34px);
  }
}

@keyframes splash-title-show {
  from {
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    max-width: 440px;
    opacity: 1;
    transform: translateX(0);
  }
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 10px clamp(34px, 7vw, 120px);
  box-sizing: border-box;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: none !important;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 14, 26, 0.52) 0%,
      rgba(10, 14, 26, 0.36) 45%,
      rgba(10, 14, 26, 0.16) 78%,
      rgba(10, 14, 26, 0) 100%
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 58%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 58%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.42s ease, transform 0.42s ease;
  z-index: -1;
  pointer-events: none;
}

.site-header.site-header--scrolled::before {
  opacity: 1;
  transform: translateY(0);
}

.home-view,
.home-feed,
.mineweb-hero,
.home-panel,
.home-list,
.home-list--tiers,
.home-list--posts {
  width: 100%;
  min-width: 0;
}

.app-view {
  margin-top: 78px;
}

#google-name {
  display: none !important;
}

.site-header__brand {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.site-header__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-header__auth {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
  z-index: 1;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.site-header.site-header--admin-condensed .site-header__brand,
.site-header.site-header--admin-condensed .site-header__auth {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
}

.site-header.site-header--admin-condensed::before {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
}

.site-header__auth #login-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(8, 10, 22, 0.78);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.site-header__auth #login-btn.login-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.98);
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  box-shadow: none;
  margin-top: 8px;
}

.site-header__auth #login-btn.login-pill-btn img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-header__auth #login-btn.login-pill-btn span {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 860px) {
  .site-header__auth #login-btn.login-pill-btn {
    min-height: 30px;
    border-width: 3px;
    padding: 5px 12px 5px 7px;
    gap: 6px;
  }

  .site-header__auth #login-btn.login-pill-btn img {
    width: 16px;
    height: 16px;
  }

  .site-header__auth #login-btn.login-pill-btn span {
    font-size: 14px;
  }
}

html.mw-auth-hint #login-btn {
  display: none !important;
}

html.mw-auth-hint #profile-menu-toggle {
  display: inline-flex !important;
}

.avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.avatar-btn .topbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  object-fit: cover;
}

.avatar-btn--sub-active::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: conic-gradient(
    from -18deg,
    rgba(255, 150, 54, 0.88) 0deg 30deg,
    rgba(255, 102, 56, 0.84) 30deg 70deg,
    rgba(255, 138, 52, 0.86) 70deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  box-shadow: 0 0 8px rgba(255, 136, 0, 0.2);
  pointer-events: none;
}

.avatar-btn--sub-active .topbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  object-fit: cover;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f0f0f;
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 2000;
}

.profile-menu__name {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 10px;
  margin-bottom: 2px;
  word-break: break-word;
}

.profile-menu__item {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.profile-menu__item:hover {
  background: rgba(59, 130, 246, 0.15);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__brand {
  font-size: 18px;
  font-weight: 700;
}

.topbar__auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  object-fit: cover;
}

.topbar__name {
  color: var(--muted);
  font-size: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

#tabs-section {
  margin-bottom: 12px;
}

.tab {
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tab--active {
  background: #1a1a1a;
  border-color: #3a3a3a;
}

.admin-page {
  width: 100%;
  margin: 78px 0 48px;
  padding: 0 16px 0 0;
  --admin-accent: #92d0ff;
  --admin-accent-soft: rgba(146, 208, 255, 0.14);
  --admin-surface: rgba(255, 255, 255, 0.025);
  --admin-surface-strong: rgba(255, 255, 255, 0.04);
  --admin-line: rgba(255, 255, 255, 0.08);
  --admin-glow: rgba(255, 255, 255, 0.08);
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 64px;
  min-height: calc(100vh - 74px);
  padding: 14px 10px 16px 12px;
  border-right: 1px solid var(--admin-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008));
}

.admin-sidebar__title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.62);
  margin: 2px 6px 10px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-group {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-nav-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.86;
  transition: color 0.24s ease, opacity 0.24s ease;
}

.admin-nav-group__toggle:hover {
  opacity: 1;
  color: #fff;
  box-shadow: none;
}

.admin-nav-group__arrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.admin-nav-group__toggle--collapsed .admin-nav-group__arrow {
  transform: rotate(-90deg);
}

.admin-nav-group__content {
  display: grid;
  gap: 6px;
  padding-left: 12px;
}

.admin-nav__item {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--admin-line);
  transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, transform 0.2s ease;
}

.admin-nav-group__content .admin-nav__item {
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.admin-nav__item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translateX(2px);
}

.admin-nav__item.tab--active {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 30px rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03));
}

.admin-nav__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-nav__hint {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(245, 245, 245, 0.66);
  line-height: 1.2;
}

.admin-content {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-left: 2px;
}

.admin-content .card.is-loading {
  position: relative;
}

.admin-content .card.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  animation: admin-refresh-shimmer 1.1s ease-in-out;
}

@keyframes admin-refresh-shimmer {
  0% { opacity: 0; }
  30% { opacity: 0.6; }
  100% { opacity: 0; }
}

.dashboard-picker {
  margin-top: 14px;
}

.dashboard-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-picker__actions {
  display: flex;
  gap: 8px;
}

.dashboard-picker__actions .btn {
  padding: 8px 12px;
}

.dashboard-picker__list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.dashboard-panel-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-panel-option__input {
  accent-color: #d8d8d8;
}

.admin-metrics-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.admin-metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-metric-card__label {
  color: rgba(245, 245, 245, 0.72);
  font-size: 12px;
}

.admin-metric-card__value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

.performance-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.perf-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  min-height: 112px;
  padding: 12px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.perf-card__chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.perf-card__line {
  fill: none;
  stroke: rgba(210, 239, 255, 0.96);
  stroke-width: 2.4;
}

.perf-card__area {
  fill: rgba(146, 208, 255, 0.16);
}

.perf-card__dot {
  fill: #f4fbff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.18));
}

.perf-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(245, 245, 245, 0.78);
}

.perf-card__head span:last-child {
  color: #f5f5f5;
  font-size: 20px;
  font-weight: 700;
}

.node-load-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(155px, 215px));
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-start;
}

.node-load-panel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #242424, #1d1d1d);
  padding: 12px 12px;
  display: grid;
  gap: 6px;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.node-load-panel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.node-load-panel__line {
  fill: none;
  stroke: rgba(78, 170, 255, 0.98);
  stroke-width: 2.6;
}

.node-load-panel__area {
  fill: rgba(72, 168, 255, 0.24);
}

.node-load-panel__dot {
  fill: #9fd2ff;
  filter: drop-shadow(0 0 6px rgba(64, 162, 255, 0.74));
}

.node-load-panel__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.node-load-panel__hint {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.revenue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.revenue-periods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.revenue-period-btn {
  position: relative;
  padding: 8px 12px;
}

.revenue-period-btn.is-active {
  border-color: rgba(92, 182, 255, 0.72);
  background: rgba(100, 188, 255, 0.16);
  color: #d8eeff;
  box-shadow: 0 0 12px rgba(78, 170, 255, 0.28);
}

.email-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  padding: 0;
}

.email-btn:hover {
  color: #c9e8ff;
  text-decoration: underline;
}

.admin-metrics-grid--reality {
  margin-top: 12px;
}

.revenue-chart {
  margin-top: 10px;
  width: 100%;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.revenue-chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 12, 0.94);
  color: #f5f5f5;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.revenue-chart-card {
  position: relative;
}

.revenue-chart line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.revenue-chart__line {
  fill: none;
  stroke: rgba(80, 174, 255, 0.98);
  stroke-width: 2.2;
}

.revenue-chart__area {
  fill: rgba(82, 176, 255, 0.24);
}

.ant-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ant-switch .ant-switch-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.ant-switch .ant-switch-inner::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f3f3f3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.ant-switch.ant-switch-checked {
  background: rgba(84, 178, 255, 0.3);
  border-color: rgba(84, 178, 255, 0.78);
  box-shadow: 0 0 10px rgba(62, 164, 255, 0.32);
}

.ant-switch.ant-switch-checked .ant-switch-inner::before {
  transform: translateX(20px);
  background: #d9efff;
}

.ant-switch:focus-visible {
  outline: 2px solid rgba(84, 178, 255, 0.6);
  outline-offset: 2px;
}

.revenue-chart-labels {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(245, 245, 245, 0.68);
  font-size: 12px;
}

.admin-user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-btn {
  padding: 8px 10px;
  font-size: 12px;
}

.admin-action-btn--danger {
  border-color: rgba(239, 68, 68, 0.36);
  color: #fecaca;
}

.table-wrap {
  margin-top: 12px;
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  font-size: 13px;
}

.admin-users-panel {
  display: grid;
  gap: 16px;
}

.admin-users-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-users-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.admin-users-stat {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 245, 245, 0.72);
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-users-stat--danger {
  border-color: rgba(239, 68, 68, 0.24);
  color: rgba(254, 202, 202, 0.9);
}

.admin-users-stat--soft {
  color: rgba(245, 245, 245, 0.58);
}

.admin-users-stat[data-tone="loading"] {
  color: rgba(245, 245, 245, 0.82);
}

.admin-users-stat[data-tone="ok"] {
  color: rgba(216, 242, 255, 0.92);
  border-color: rgba(143, 203, 255, 0.22);
}

.admin-users-stat[data-tone="warn"] {
  color: rgba(255, 225, 191, 0.92);
  border-color: rgba(255, 184, 107, 0.2);
}

.admin-users-actions {
  margin-top: 0;
  align-items: center;
  justify-content: flex-end;
}

.admin-users-search {
  position: relative;
  width: min(360px, 100%);
}

.admin-users-search .input {
  width: 100%;
  padding-left: 38px;
}

.admin-users-search__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 2px solid rgba(245, 245, 245, 0.48);
  border-radius: 999px;
  pointer-events: none;
}

.admin-users-search__icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.48);
  transform: rotate(45deg);
}

.admin-users-list {
  display: grid;
  gap: 12px;
}

.admin-audit-panel {
  display: grid;
  gap: 16px;
}

.admin-audit-toolbar {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-audit-search {
  width: min(420px, 100%);
}

.admin-audit-select {
  min-width: 190px;
}

.admin-audit-list {
  display: grid;
  gap: 12px;
}

.admin-audit-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.98), rgba(11, 13, 17, 0.99));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.admin-audit-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-audit-card__titles {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.admin-audit-card__title {
  color: #f8fbff;
  font-size: 16px;
  line-height: 1.35;
}

.admin-audit-card__time {
  color: rgba(245, 245, 245, 0.54);
  font-size: 12px;
  white-space: nowrap;
}

.admin-audit-card__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-audit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(149, 174, 190, 0.18);
  border-radius: 999px;
  background: rgba(149, 174, 190, 0.08);
  color: rgba(236, 243, 248, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.admin-audit-chip--muted {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 245, 245, 0.62);
}

.admin-audit-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.admin-audit-card__meta-item,
.admin-audit-detail {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
}

.admin-audit-card__meta-item span,
.admin-audit-detail span {
  color: rgba(240, 245, 249, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-audit-card__meta-item strong,
.admin-audit-detail strong {
  color: #f8fbff;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-audit-card__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-users-empty {
  min-height: 136px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: rgba(245, 245, 245, 0.52);
  background: rgba(255, 255, 255, 0.02);
}

.admin-users-empty--small {
  min-height: 82px;
}

.admin-node-cell {
  display: grid;
  gap: 6px;
}

.admin-node-cell__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-node-cell__top strong {
  color: #fbfcfd;
  font-size: 14px;
}

.admin-node-cell__flag {
  font-size: 18px;
  line-height: 1;
}

.admin-node-cell__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(245, 245, 245, 0.52);
  font-size: 12px;
}

.admin-node-cell__ping {
  color: rgba(214, 239, 255, 0.92);
}

.admin-user-row {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(22, 24, 28, 0.98), rgba(13, 14, 18, 0.99));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-user-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-user-row--blocked {
  border-color: rgba(239, 68, 68, 0.24);
}

.admin-user-row--admin {
  border-color: rgba(176, 197, 211, 0.22);
}

.admin-user-row__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.admin-user-row__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-row__avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-user-row__namebox {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-user-row__name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fcfcfd;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-user-row__name,
.admin-user-row__email,
.admin-user-fact strong,
.admin-user-fact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row__email,
.admin-user-fact span {
  color: rgba(245, 245, 245, 0.52);
  font-size: 12px;
}

.admin-user-row__meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(245, 245, 245, 0.44);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-user-row__role {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(176, 197, 211, 0.22);
  color: rgba(235, 244, 250, 0.8);
  background: rgba(176, 197, 211, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.admin-user-row__status-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-row__signals {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-signal {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 245, 245, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.admin-user-signal--good {
  border-color: rgba(111, 226, 168, 0.2);
  color: rgba(213, 255, 227, 0.95);
  background: rgba(111, 226, 168, 0.08);
}

.admin-user-signal--warn {
  border-color: rgba(255, 184, 107, 0.22);
  color: rgba(255, 229, 196, 0.95);
  background: rgba(255, 184, 107, 0.08);
}

.admin-user-signal--danger {
  border-color: rgba(239, 68, 68, 0.24);
  color: rgba(255, 211, 211, 0.95);
  background: rgba(239, 68, 68, 0.08);
}

.admin-user-signal--info {
  border-color: rgba(143, 203, 255, 0.22);
  color: rgba(224, 244, 255, 0.95);
  background: rgba(143, 203, 255, 0.08);
}

.admin-user-signal--muted {
  color: rgba(245, 245, 245, 0.64);
}

.admin-user-row__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-fact {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.admin-user-row__label {
  color: rgba(245, 245, 245, 0.42) !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-user-fact strong {
  color: #fbfcfd;
  font-size: 15px;
  line-height: 1.25;
}

.admin-user-badge {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-user-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9ca3af;
}

.admin-user-badge--active::before,
.admin-user-badge--online::before {
  background: #22c55e;
}

.admin-user-badge--blocked {
  border-color: rgba(239, 68, 68, 0.28);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.16);
}

.admin-user-badge--blocked::before {
  background: #ef4444;
}

.admin-user-badge--admin {
  border-color: rgba(176, 197, 211, 0.24);
  color: rgba(235, 244, 250, 0.82);
  background: rgba(176, 197, 211, 0.08);
}

.admin-user-badge--offline::before {
  background: #6b7280;
}

.admin-user-progress {
  position: relative;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-user-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(150, 207, 255, 0.95));
}

.admin-user-row__edit {
  min-width: 126px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f7f7f8;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-user-row__edit img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.78;
}

.admin-user-row__edit:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.admin-user-sheet__dialog {
  width: min(1120px, calc(100vw - 36px));
}

.admin-user-sheet__tabs {
  display: inline-flex;
  gap: 6px;
  padding: 0 22px 16px;
}

.admin-user-sheet__tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 245, 245, 0.62);
  cursor: pointer;
}

.admin-user-sheet__tab.is-active {
  border-color: rgba(176, 197, 211, 0.26);
  background: rgba(176, 197, 211, 0.1);
  color: #f7f7f8;
}

.admin-user-sheet__body {
  display: grid;
  gap: 14px;
}

.admin-user-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.admin-user-summary__avatar {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}

.admin-user-summary__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user-summary__name {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.admin-user-summary__email {
  color: rgba(245, 245, 245, 0.54);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-user-summary__meta {
  color: rgba(245, 245, 245, 0.42);
  font-size: 12px;
}

.admin-user-summary__badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-protected {
  padding: 12px 14px;
  border: 1px solid rgba(176, 197, 211, 0.18);
  border-radius: 8px;
  background: rgba(176, 197, 211, 0.07);
  color: rgba(235, 244, 250, 0.78);
  font-size: 13px;
}

.admin-user-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-user-editor-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.admin-user-editor-card.is-expanded {
  border-color: rgba(143, 203, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(143, 203, 255, 0.08) inset;
}

.admin-user-editor-card--danger {
  grid-column: 1 / -1;
  border-color: rgba(239, 68, 68, 0.18);
}

.admin-user-editor-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-editor-card__head h4 {
  margin: 0;
  color: #f7f7f8;
  font-size: 15px;
  line-height: 1.25;
}

.admin-user-editor-card__head span,
.admin-user-danger-copy {
  color: rgba(245, 245, 245, 0.5);
  font-size: 12px;
  line-height: 1.45;
}

.admin-user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-form-grid__wide {
  grid-column: 1 / -1;
}

.admin-user-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-card-preview {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-user-card-preview strong {
  color: #fbfcfd;
  font-size: 14px;
}

.admin-user-card-preview span {
  color: rgba(245, 245, 245, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.admin-user-inline-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.admin-user-inline-panel--danger {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.04);
}

.admin-user-inline-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-inline-panel__head strong {
  color: #fbfcfd;
  font-size: 14px;
}

.admin-inline-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.admin-user-card-actions .btn:disabled,
.admin-user-row__edit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.admin-user-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-data-item {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-user-data-item span {
  color: rgba(245, 245, 245, 0.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-user-data-item strong {
  min-width: 0;
  color: #f7f7f8;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-user-configs {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-user-configs__list {
  display: grid;
  gap: 8px;
}

.admin-user-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.12);
}

.admin-user-config div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-user-config__flag {
  display: inline-block;
  margin-right: 8px;
}

.admin-user-config__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-config strong,
.admin-user-config span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-config strong {
  color: #f7f7f8;
  font-size: 13px;
}

.admin-user-config span {
  color: rgba(245, 245, 245, 0.52);
  font-size: 12px;
}

.hero__badge {
  display: inline-block;
  color: #e5e5e5;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
}

.hero__subtitle {
  color: var(--muted);
  max-width: 740px;
  margin: 2px 0 0;
}

.guest-card {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 18px 20px;
  text-align: center;
  background: linear-gradient(180deg, #151515, #101010);
}

.guest-card__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0f0f0;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.guest-card__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.guest-card__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-feed {
  max-width: none;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.mineweb-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(14, 14, 14, 0.46);
  backdrop-filter: blur(7px);
}

.mineweb-hero {
  margin-top: 12px;
  width: calc(98vw - 20px);
  margin-left: calc(50% - 50vw + 20px);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #06080f;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.mineweb-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 186, 120, 0.22), rgba(255, 186, 120, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 26%);
}

.mineweb-hero__banner {
  width: 100%;
  max-width: none;
  height: clamp(480px, 52vw, 700px);
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04) brightness(0.92);
  transform: scale(1.02);
}

.mineweb-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(102deg, rgba(2, 2, 2, 0.9) 0%, rgba(8, 8, 8, 0.56) 44%, rgba(8, 8, 8, 0.24) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1));
}

.mineweb-hero__content {
  position: absolute;
  inset: 0 0 136px 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  gap: 0;
  width: min(760px, calc(100% - 36px));
  padding: clamp(18px, 2.4vw, 30px) clamp(24px, 3.4vw, 42px) clamp(34px, 4.2vw, 56px);
}

.mineweb-hero__info {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  background: transparent;
  backdrop-filter: none;
  margin-top: 4px;
}

.mineweb-card__avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.mineweb-card__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mineweb-card__title {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  margin-left: 2px;
  overflow-wrap: anywhere;
}

.mineweb-hero .mineweb-card__title {
  font-size: clamp(40px, 3.05vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.mineweb-card__title:hover {
  text-decoration: underline;
}

.mineweb-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mineweb-hero__description {
  position: relative;
  max-width: 62ch;
  margin: 60px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(243, 243, 243, 0.96);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  background: transparent;
  backdrop-filter: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.58);
}

.mineweb-hero__cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: end;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 0, 0.34);
  background: linear-gradient(135deg, rgba(255, 166, 77, 0.02), rgba(255, 120, 48, 0.05));
  backdrop-filter: blur(10px);
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  box-shadow: 0 0 16px rgba(255, 145, 64, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.mineweb-hero__cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 190, 110, 0.7);
  background: linear-gradient(135deg, rgba(255, 176, 84, 0.18), rgba(255, 130, 56, 0.12));
  box-shadow: 0 0 24px rgba(255, 145, 64, 0.24);
  filter: saturate(1.06);
}

.mineweb-hero__highlights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  min-height: 112px;
  padding: 18px clamp(18px, 3vw, 42px);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.008), rgba(0, 0, 0, 0.008)),
    linear-gradient(18deg, rgba(12, 12, 12, 0.004), rgba(9, 9, 9, 0.012));
  backdrop-filter: blur(8px) saturate(1.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mineweb-hero__highlight {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mineweb-hero__highlight-title {
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.mineweb-hero__highlight-text {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.mineweb-hero__highlight-divider {
  width: 1px;
  height: 56px;
  margin: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.mineweb-hero--landing {
  width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  min-height: 100svh;
  height: 100svh;
  border: 0;
}

.mineweb-hero--landing .mineweb-hero__banner {
  height: 100%;
  min-height: 100%;
}

.mineweb-hero--landing .mineweb-hero__shade {
  background:
    radial-gradient(ellipse at 50% 14%, rgba(255, 177, 100, 0.28), rgba(255, 129, 46, 0) 48%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.36) 0%, rgba(4, 8, 18, 0.66) 52%, rgba(4, 8, 18, 0.9) 100%);
}

.mineweb-hero__content--landing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 40px);
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px;
  padding: 0;
  z-index: 3;
  text-align: center !important;
}

.mineweb-hero__landing-title {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #f7f7f7;
  text-align: center !important;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
}

.mineweb-hero__cta--landing {
  align-self: center;
  margin-inline: auto;
  border-radius: 12px;
  padding: 15px 34px;
  font-size: 21px;
  font-weight: 700;
  border-color: rgba(255, 175, 93, 0.88);
  background: linear-gradient(135deg, rgba(255, 168, 82, 0.42), rgba(255, 118, 50, 0.38));
  color: #fff9f3;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38), 0 0 22px rgba(255, 145, 65, 0.24);
}

body.page-reveal-on .site-header {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.mineweb-card__post-link {
  margin-top: 4px;
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
}

.mineweb-card__post-link:hover {
  text-decoration: underline;
}

.home-panel {
  margin-top: 80px;
  width: min(1700px, calc(100% - 20px));
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.78);
  padding: 10px;
}

.home-panel__title {
  margin: 0 0 10px;
  font-size: 24px;
  padding-left: 8px;
}

.home-list {
  display: grid;
  gap: 15px;
}

.home-list--posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-height: none;
  overflow: visible;
  padding: 8px 2px 4px;
  scrollbar-width: none;
}

.home-list--posts .home-item-link {
  min-height: 100%;
}

.home-list--tiers {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  justify-items: center;
  gap: 40px;
}

.home-panel--posts {
  width: calc(100vw - 48px);
  margin-left: calc(50% - 50vw + 24px);
  margin-right: auto;
  margin-top: 240px;
  border: 0;
  background: transparent;
  padding: 0;
}

.home-panel--posts .home-panel__title {
  display: block;
  margin-bottom: 14px;
  padding-left: 0;
  text-align: center;
}

.home-bottom-bar {
  width: calc(100vw - 20px);
  margin-top: 190px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw + 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(160deg, rgba(38, 38, 38, 0.96), rgba(24, 24, 24, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  padding: 24px 22px 14px;
}

.home-panel--tiers {
  margin-top: 210px !important;
}

.home-list--tiers {
  grid-template-columns: repeat(3, minmax(250px, 360px));
  column-gap: 74px;
  row-gap: 36px;
}

.home-list--tiers > * {
  --tier-base-transform: none;
  transform: var(--tier-base-transform);
}

.home-list--tiers > *:nth-child(2) {
  --tier-base-transform: scale(1.06);
}

.home-list--tiers > *:nth-child(1) {
  --tier-base-transform: translateX(-18px);
}

.home-list--tiers > *:nth-child(3) {
  --tier-base-transform: translateX(18px);
}

.home-bottom-bar__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 28px;
}

.home-bottom-bar__col {
  min-width: 0;
}

.home-bottom-bar__brand {
  margin: 0;
  color: #f2f2f2;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.home-bottom-bar__title {
  margin: 2px 0 10px;
  font-size: 24px;
  line-height: 1.1;
  color: #efefef;
}

.home-bottom-bar__desc {
  margin: 12px 0 0;
  color: rgba(224, 224, 224, 0.84);
  line-height: 1.48;
  font-size: 16px;
}

.home-bottom-bar__meta {
  margin-top: 16px;
  color: rgba(191, 191, 191, 0.88);
  font-size: 14px;
}

.home-bottom-bar__list {
  margin: 0;
  padding-left: 18px;
  color: rgba(224, 224, 224, 0.86);
  display: grid;
  gap: 9px;
}

.home-bottom-bar__list li::marker {
  color: #b8b8b8;
}

.home-bottom-bar__links {
  display: grid;
  gap: 10px;
}

.home-bottom-bar__links a {
  color: rgba(222, 222, 222, 0.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(196, 196, 196, 0.35);
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-bottom-bar__links a:hover {
  color: #ffffff;
  border-bottom-color: rgba(222, 222, 222, 0.74);
}

.home-bottom-bar__bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(184, 184, 184, 0.84);
  font-size: 14px;
}

.home-list__empty {
  color: var(--muted);
  font-size: 14px;
}

.home-item-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.08), rgba(14, 14, 14, 0.95));
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-list--posts .home-item-link {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 16px 16px 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.97), rgba(12, 12, 12, 0.99)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.03), transparent 52%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.33);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.home-list--posts .home-item-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05), transparent 46%);
}

.home-list--posts .home-item-link::after {
  content: none;
}

.home-list--posts .home-item-link > * {
  position: relative;
  z-index: 1;
}

.home-item-link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 84, 0.62);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.12), rgba(18, 18, 18, 0.98));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 136, 0, 0.18);
}

.home-list--posts .home-item-link:hover {
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.97), rgba(12, 12, 12, 0.99)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.04), transparent 52%);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 157, 45, 0.2),
    0 0 26px rgba(255, 136, 0, 0.14);
  filter: drop-shadow(0 0 12px rgba(255, 136, 0, 0.22));
}

.home-item-link__title {
  display: block;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}

.home-item-link__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #0a0a0a;
}

.home-list--posts .home-item-link__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.home-list--posts .home-item-link__title {
  font-size: 16px;
  line-height: 1.35;
  color: #f2f2f2;
}

/* Compact view only for the "Последние посты" section */
#mineweb-posts {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}

#mineweb-posts .home-item-link {
  flex: 0 0 260px;
  border-radius: 16px;
  padding: 10px 10px 9px;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
}

#mineweb-posts .home-item-link__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  background: #0d0d0d;
}

#mineweb-posts .home-item-link__title {
  font-size: 13px;
  line-height: 1.28;
  color: #f0f0f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .home-list--posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mineweb-posts {
    gap: 12px;
  }

  #mineweb-posts .home-item-link__image {
    max-height: 138px;
  }

  #mineweb-posts .home-item-link__title { font-size: 13px; }
}

.home-list--posts::-webkit-scrollbar {
  width: 12px;
}

.home-list--posts::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.85), rgba(10, 10, 10, 0.95));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-list--posts::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6f6f6f, #d2d2d2);
  border-radius: 999px;
  border: 2px solid rgba(10, 10, 10, 0.92);
}

.home-list--posts::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8d8d8d, #f0f0f0);
}

.home-tier {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 22px 20px 20px;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(12, 12, 12, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08), transparent 48%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 404px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-tier:hover {
  transform: var(--tier-base-transform) translateY(-4px) scale(1.02);
  border-color: rgba(255, 176, 84, 0.62);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 157, 45, 0.22),
    0 0 34px rgba(255, 136, 0, 0.24),
    0 0 54px rgba(255, 102, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.home-panel--tiers {
  border: 0;
  background: transparent;
  padding: 0;
}

.home-panel--tiers .home-panel__title {
  display: none;
}

.home-tier::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14), transparent 46%);
}

.home-tier::after {
  content: '';
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(22px);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 149, 48, 0.34), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(255, 110, 0, 0.28), transparent 44%);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}

.home-tier:hover::after {
  opacity: 1;
  transform: scale(1.04);
  animation: home-tier-glow 2.8s ease-in-out infinite alternate;
}

.home-tier > * {
  position: relative;
  z-index: 1;
}

.home-tier__plan {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.home-tier__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.home-tier__image {
  width: 130%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
}

.home-tier__media {
  margin: 10px 0 14px;
  border-radius: 14px;
  overflow: hidden;
  min-height: 302px;
  display: grid;
  place-items: center;
}

@keyframes home-tier-glow {
  from {
    filter: blur(20px);
    transform: scale(1.01);
  }
  to {
    filter: blur(28px);
    transform: scale(1.06);
  }
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(980px 580px at 18% 0%, rgba(255, 255, 255, 0.04), transparent 52%),
    radial-gradient(860px 540px at 84% 4%, rgba(255, 255, 255, 0.03), transparent 56%),
    #000;
  pointer-events: none;
  overflow: hidden;
}

.starfield__stars,
.starfield__comets {
  position: absolute;
  inset: 0;
}

.starfield__star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
  animation-name: star-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.starfield__comet {
  position: absolute;
  width: 88px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(198, 229, 255, 0.9), rgba(255, 255, 255, 0.06));
  transform: rotate(64deg);
  filter: drop-shadow(0 0 6px rgba(151, 206, 255, 0.55));
  opacity: 0;
  animation: comet-fly 2.4s ease-out forwards;
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.2);
  }
}

@keyframes comet-fly {
  0% {
    opacity: 0;
    transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) rotate(64deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--cx, 0px) + 220px), calc(var(--cy, 0px) + 340px), 0) rotate(64deg);
  }
}

.home-tier__name {
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  letter-spacing: 0.01em;
}

.home-tier__summary {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.home-tier__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 0;
}

.home-tier__amount {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #f5f5f5;
}

.home-tier__period {
  font-size: 14px;
  color: #bfbfbf;
}

.home-tier__features {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: grid;
  gap: 9px;
}

.home-tier__feature {
  position: relative;
  padding-left: 18px;
  color: #e5e5e5;
  font-size: 14px;
  line-height: 1.35;
}

.home-tier__feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ebebeb, #8c8c8c);
}

.home-tier__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #0e0e0e;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #f0f0f0, #cfcfcf);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.home-tier__action:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.home-tier__action--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.card-lite {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(12, 12, 12, 0.98));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.verify__title {
  font-weight: 700;
}

.verify__hint {
  margin: 8px 0 0;
  color: rgba(230, 230, 230, 0.68);
  font-size: 14px;
}

.admin-build-settings {
  display: grid;
  gap: 12px;
}

.admin-build-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-build-file-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-build-file-card .input {
  width: 100%;
}

@media (max-width: 760px) {
  .admin-build-file-grid {
    grid-template-columns: 1fr;
  }
}

.verify__row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verify__input-group {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 9, 9, 0.7);
  overflow: hidden;
}

.verify__prefix {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 10px 10px 12px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.verify__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
}

.verify__input:focus {
  outline: none;
}

.verify__input-group:focus-within {
  border-color: rgba(255, 173, 92, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 140, 64, 0.14);
}

.verify__panel {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.verify__code {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.boosty-linked {
  display: grid;
  gap: 10px;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(13, 13, 13, 0.99)),
    radial-gradient(circle at 100% 0%, rgba(255, 145, 66, 0.14), transparent 56%);
}

.boosty-linked__profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boosty-linked__meta {
  display: grid;
  gap: 2px;
}

.boosty-linked__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.boosty-linked__title-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.boosty-linked__name {
  color: #f5f5f5;
  font-weight: 600;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(90deg, #e5e5e5, #cfcfcf);
  color: #101010;
}

.btn--ghost {
  border: 1px solid var(--line);
  background: #0d0d0d;
}

.btn--ghost:hover {
  background: #151515;
}

.btn.is-loading {
  opacity: 0.82;
  cursor: wait;
}

.btn--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.section-subtitle {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--muted);
}

.user-vpn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.user-vpn-stats {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-vpn-stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(12, 12, 12, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 140, 64, 0.12), transparent 52%);
}

.user-vpn-stat__label {
  display: block;
  color: rgba(240, 240, 240, 0.66);
  font-size: 12px;
}

.user-vpn-stat__value {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  color: #f5f5f5;
}

.user-vpn-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.user-vpn-grid--loading {
  filter: saturate(0.9);
}

.user-vpn-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(24, 24, 24, 0.97), rgba(10, 10, 10, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 128, 52, 0.14), transparent 50%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--reveal-order, 0) * 45ms);
}

.user-vpn-card.user-vpn-card--visible,
.user-vpn-card--skeleton {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.user-vpn-card--skeleton {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(21, 21, 21, 0.86), rgba(11, 11, 11, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(255, 128, 52, 0.08), transparent 58%);
  backdrop-filter: blur(9px);
}

.user-vpn-card--skeleton::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  animation: user-vpn-skeleton-shimmer 1.45s ease-in-out infinite;
}

.sk {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  animation: user-vpn-skeleton-pulse 1.6s ease-in-out infinite;
}

.sk--line {
  height: 11px;
}

.sk--lg {
  width: 72%;
}

.sk--md {
  width: 88%;
}

.sk--sm {
  width: 48%;
}

.sk--actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.sk--dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

@keyframes user-vpn-skeleton-pulse {
  0%, 100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes user-vpn-skeleton-shimmer {
  0% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }
  25% {
    opacity: 0.35;
  }
  100% {
    transform: translateX(380%) skewX(-18deg);
    opacity: 0;
  }
}

.user-vpn-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.user-vpn-card__title-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.user-vpn-card__node-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-vpn-card__ping-inline .ping-check {
  justify-content: flex-start;
}

.user-vpn-card__ping-inline .ping-check__value {
  min-width: 0;
}

.user-vpn-card__status {
  color: rgba(240, 240, 240, 0.76);
  font-size: 13px;
}

.user-vpn-card__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.user-vpn-card__state--ok {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.user-vpn-card__state--off {
  color: #c8c8c8;
  border-color: rgba(180, 180, 180, 0.3);
  background: rgba(120, 120, 120, 0.12);
}

.user-vpn-card__state--expired {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.user-vpn-card__meta {
  display: grid;
  gap: 10px;
}

.user-vpn-card__ping .ping-check {
  justify-content: flex-start;
}

.user-vpn-card__remaining .usage {
  min-width: 0;
}

.user-vpn-card__actions .table-actions {
  justify-content: flex-start;
}

.reality-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.reality-panel-picker {
  margin-bottom: 14px;
  max-width: 320px;
}

#reality-panel-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 38px;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions--left {
  justify-content: flex-start;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d0d;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.icon-btn:hover {
  background: #1a1a1a;
}

.action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.action-icon--text {
  width: auto;
  height: auto;
  filter: none;
  font-size: 15px;
  line-height: 1;
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.table .cell-right {
  text-align: right;
}

.table th.ping-col-head {
  padding-right: 34px;
}

.panel-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-flag {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  object-fit: cover;
}

.panel-flag--fallback {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.table .email-ellipsis {
  display: inline-block;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.ping-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ping-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.ping-dot--red {
  background: #ef4444;
}

.ping-dot--orange {
  background: #f97316;
}

.ping-dot--yellow {
  background: #eab308;
}

.ping-dot--green {
  background: #22c55e;
}

.ping-check__value {
  font-size: 12px;
  color: var(--muted);
  min-width: 88px;
  text-align: left;
}

.icon-btn--danger:hover {
  border-color: #7f1d1d;
  background: #220f12;
}

.icon-btn--danger:hover .action-icon {
  filter: brightness(0) saturate(100%) invert(29%) sepia(98%) saturate(2240%) hue-rotate(341deg)
    brightness(95%) contrast(93%);
}

.presence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.presence-dot--green {
  background: #22c55e;
}

.presence-dot--gray {
  background: #6b7280;
}

.presence-dot--red {
  background: #ef4444;
}

.uuid-btn {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 6px 8px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.uuid-btn:hover {
  background: #141414;
}

.usage {
  min-width: 140px;
}

.usage__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #1a1a1a;
  overflow: hidden;
  border: 1px solid var(--line);
}

.usage__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7f7f7f, #d9d9d9);
}

.usage__text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.reality-qr {
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 860px) {
  .reality-form {
    grid-template-columns: 1fr;
  }

  .user-vpn-stats {
    grid-template-columns: 1fr;
  }
}

.profile__title {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.profile-modern {
  display: grid;
  gap: 16px;
}

.profile-modern .boosty-linked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(150deg, rgba(16, 16, 18, 0.95), rgba(10, 10, 12, 0.98)),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08), transparent 52%);
}

.profile-modern .boosty-linked__title {
  color: #f3f4f6;
}

.profile-modern-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 26px 28px;
  background:
    linear-gradient(150deg, rgba(12, 12, 14, 0.98), rgba(7, 7, 9, 0.99)),
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.08), transparent 50%);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.profile-modern-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
  pointer-events: none;
}

.profile-modern-card__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 232, 236, 0.74);
}

.profile-modern-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 750;
  letter-spacing: -0.015em;
  color: #f8fafc;
}

.profile-modern-card__subtitle {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: rgba(211, 216, 227, 0.78);
  font-size: 15px;
}

.profile-modern-card[data-subscription-state="active"] .profile-modern-card__title {
  color: #f8fafc;
}

.profile-modern-card[data-subscription-state="expired"] .profile-modern-card__title,
.profile-modern-card[data-subscription-state="no_subscription"] .profile-modern-card__title {
  color: #e5e7eb;
}

.profile-modern-card[data-subscription-state="expired"] {
  border-color: rgba(255, 255, 255, 0.18);
}

.profile-modern-card[data-subscription-state="no_subscription"] {
  border-color: rgba(255, 255, 255, 0.16);
}

.profile-time-card {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.72), rgba(12, 12, 16, 0.88));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-time-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-time-card__meta {
  display: grid;
  gap: 4px;
}

.profile-time-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(232, 236, 245, 0.96);
  font-size: 18px;
}

.profile-time-card__right {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.profile-time-card__label {
  font-size: 12px;
  color: rgba(198, 205, 220, 0.68);
  text-transform: none;
  letter-spacing: 0;
}

.profile-time-card__value {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 720;
  color: #f8fafc;
}

.profile-time-card__value--right {
  font-size: 18px;
}

.profile-progress__head {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-progress__label,
.profile-progress__days {
  color: rgba(199, 206, 220, 0.74);
  font-size: 13px;
}

.profile-progress {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.profile-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e5e7eb 0%, #cbd5e1 45%, #f8fafc 100%);
  box-shadow: 0 0 14px rgba(226, 232, 240, 0.35);
  transition: width 0.35s ease;
}

.profile-modern-stats {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-modern-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-quick-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, rgba(18, 18, 22, 0.92), rgba(9, 9, 12, 0.98)),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08), transparent 56%);
  color: #e5e7eb;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-quick-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.profile-quick-btn--active {
  border-color: rgba(248, 250, 252, 0.36);
}

.profile-quick-btn--danger {
  color: #ff8f8f;
  border-color: rgba(255, 107, 107, 0.34);
}

.profile-modern__unlink-btn {
  min-width: 120px;
}

@media (max-width: 860px) {
  .profile-modern .boosty-linked {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-modern-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .profile-time-card {
    margin-top: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-time-card__right {
    justify-items: start;
    text-align: left;
  }

  .profile-modern-stats {
    grid-template-columns: 1fr;
  }

  .profile-modern-actions {
    grid-template-columns: 1fr;
  }
}

.profile.card {
  margin-top: 12px;
}

.profile--embedded {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(21, 21, 21, 0.96), rgba(11, 11, 11, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 145, 66, 0.1), transparent 52%);
}

.profile--embedded.profile--unlinked {
  border-color: rgba(255, 173, 92, 0.34);
  background:
    linear-gradient(180deg, rgba(22, 18, 14, 0.96), rgba(12, 10, 8, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 154, 78, 0.16), transparent 52%);
}

.profile--embedded .profile__title {
  margin-bottom: 12px;
  font-size: 19px;
}

.profile--embedded.profile--unlinked .item__value {
  color: #ffd4ad;
}

.profile-page {
  padding-bottom: 18px;
}

.profile-page__account {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-page__avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.profile-page__account-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-page__account-label {
  color: rgba(202, 209, 221, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-page__account-name {
  color: #f8fafc;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 760;
  line-height: 1.1;
}

.profile-minimal {
  display: grid;
  gap: 18px;
}

.profile-minimal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(13, 13, 16, 0.98), rgba(7, 7, 10, 1)),
    radial-gradient(circle at 100% 0%, rgba(132, 154, 188, 0.12), transparent 52%);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-minimal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(163, 190, 225, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
}

.profile-minimal__top,
.profile-minimal__summary,
.profile-scale-panel {
  position: relative;
  z-index: 1;
}

.profile-minimal__top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-minimal__avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.profile-minimal__identity {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-minimal__eyebrow {
  color: rgba(188, 195, 206, 0.62);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-minimal__name {
  color: #f8fafc;
  font-size: clamp(22px, 2.8vw, 29px);
  font-weight: 750;
  line-height: 1.06;
}

.profile-minimal__plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-minimal__plan {
  margin: 0;
  color: #e3e8ef;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.14;
}

.profile-minimal__summary {
  margin-top: 18px;
  display: block;
  color: rgba(196, 203, 214, 0.72);
  font-size: 13px;
  line-height: 1.55;
  max-width: 640px;
}

.profile-minimal__summary-end {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #f8fafc;
  font-weight: 650;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-scale-panel {
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-scale-panel__head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.profile-scale-panel__title {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-scale-panel__meta {
  color: rgba(191, 199, 210, 0.72);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
}

.profile-scale {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 68px;
  padding: 6px 0 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(149, 161, 176, 0.28) transparent;
}

.profile-scale::-webkit-scrollbar {
  height: 6px;
}

.profile-scale::-webkit-scrollbar-thumb {
  background: rgba(149, 161, 176, 0.28);
  border-radius: 999px;
}

.profile-scale__item {
  min-width: 78px;
  display: grid;
  gap: 9px;
  justify-items: stretch;
}

.profile-scale__segment {
  appearance: none;
  border: 0;
  width: 100%;
  min-width: 34px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(92, 100, 112, 0.72), rgba(128, 138, 152, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.profile-scale__segment[data-tier="issledovatel"] {
  background: linear-gradient(90deg, #6d7682, #8a96a4);
}

.profile-scale__segment[data-tier="puteshestvennik"] {
  background: linear-gradient(90deg, #617589, #8ea4ba);
}

.profile-scale__segment[data-tier="traktorist"] {
  background: linear-gradient(90deg, #6d7f98, #adc0d8);
}

.profile-scale__segment:hover,
.profile-scale__segment:focus-visible,
.profile-scale__segment.is-current {
  outline: none;
  transform: translateY(-2px) scaleY(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(83, 106, 136, 0.2);
  filter: brightness(1.08);
}

.profile-scale__duration {
  color: rgba(185, 193, 204, 0.76);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.profile-scale__empty {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 720px) {
  .profile-minimal-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .profile-minimal__top {
    align-items: flex-start;
  }

  .profile-minimal__avatar {
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }

  .profile-minimal__plan {
    font-size: 18px;
  }

  .profile-scale-panel {
    margin-top: 20px;
    padding: 0;
  }

  .profile-scale {
    gap: 10px;
  }

  .profile-scale__segment {
    min-width: 28px;
  }

  .profile-scale__duration {
    font-size: 10px;
  }
}

.profile-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(18, 18, 22, 0.92), rgba(10, 10, 14, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(138, 164, 196, 0.12), transparent 56%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-stat-card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 207, 219, 0.68);
}

.profile-stat-card__value {
  display: block;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 730;
  line-height: 1.15;
}

.profile-stat-card__hint {
  display: block;
  margin-top: 7px;
  color: rgba(189, 197, 210, 0.74);
  font-size: 13px;
  line-height: 1.4;
}

.profile-plan-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(150deg, rgba(12, 12, 15, 0.98), rgba(7, 7, 10, 0.99)),
    radial-gradient(circle at 100% 0%, rgba(128, 156, 192, 0.14), transparent 52%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-plan-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-plan-card__eyebrow {
  color: rgba(200, 207, 219, 0.68);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-plan-card__title {
  margin: 8px 0 0;
  font-size: clamp(24px, 2.8vw, 32px);
  color: #f8fafc;
}

.profile-plan-card__summary {
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

.profile-timeline-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 14px;
  margin-bottom: 18px;
}

.profile-timeline-bar__segment {
  min-width: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(107, 114, 128, 0.56), rgba(148, 163, 184, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profile-timeline-bar__segment[data-tier="issledovatel"] {
  background: linear-gradient(90deg, rgba(109, 128, 150, 0.9), rgba(144, 164, 188, 0.96));
}

.profile-timeline-bar__segment[data-tier="puteshestvennik"] {
  background: linear-gradient(90deg, rgba(104, 133, 188, 0.92), rgba(147, 180, 230, 0.98));
}

.profile-timeline-bar__segment[data-tier="traktorist"] {
  background: linear-gradient(90deg, rgba(110, 140, 214, 0.96), rgba(186, 214, 255, 1));
}

.profile-timeline-list {
  display: grid;
  gap: 12px;
}

.profile-timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.profile-timeline-item--current {
  border-color: rgba(138, 176, 232, 0.36);
  background:
    linear-gradient(180deg, rgba(18, 25, 37, 0.94), rgba(11, 14, 20, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(117, 168, 248, 0.14), transparent 56%);
}

.profile-timeline-item__main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.profile-timeline-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-timeline-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.profile-timeline-item__status {
  color: rgba(184, 193, 207, 0.72);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-timeline-item__dates,
.profile-timeline-item__duration {
  color: rgba(204, 211, 223, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.profile-timeline-item__end {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.profile-progress__fill {
  background: linear-gradient(90deg, #9ab1cb 0%, #bdd4ee 48%, #edf6ff 100%);
  box-shadow: 0 0 14px rgba(170, 198, 232, 0.3);
}

@media (max-width: 860px) {
  .profile-plan-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .profile-plan-card__head,
  .profile-timeline-item {
    grid-template-columns: 1fr;
  }

  .profile-plan-card__summary,
  .profile-timeline-item__end {
    text-align: left;
  }
}

.profile__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(9, 9, 9, 0.72);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.item:hover {
  border-color: rgba(255, 171, 88, 0.44);
  transform: translateY(-1px);
}

.boosty-profile {
  display: flex;
  gap: 12px;
  align-items: center;
}

.boosty-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.item__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.item__label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.item__value {
  font-weight: 700;
  font-size: 16px;
}

.alert {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #151515;
  color: #e5e5e5;
}

.alert.warn {
  background: #1a1a1a;
  color: #e5e5e5;
}

.alert.success {
  background: #141414;
  color: #f0f0f0;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(380px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(20, 20, 20, 0.94);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
  filter: saturate(0.9);
  font-size: 14px;
  line-height: 1.35;
}

.toast--show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.toast--hide {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(42, 11, 15, 0.96);
  color: #fecaca;
}

.toast--warn {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(42, 27, 6, 0.96);
  color: #fde68a;
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(8, 34, 21, 0.96);
  color: #bbf7d0;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.modal__card {
  width: min(620px, 96vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f0f0f;
  padding: 18px;
}

.modal__title {
  margin: 0 0 8px;
}

.modal__text {
  margin: 0;
  color: var(--muted);
}

.modal__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal__token {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.modal__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.modal__textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--text);
  padding: 10px;
  resize: vertical;
  margin-bottom: 10px;
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.page-reveal-on .site-header {
  animation: section-reveal 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s both;
}

body.page-reveal-on .mineweb-hero {
  animation: section-reveal 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.16s both;
}

body.page-reveal-on .home-panel--tiers {
  animation: section-reveal 0.78s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s both;
}

body.page-reveal-on .home-panel--posts {
  animation: section-reveal 0.84s cubic-bezier(0.22, 0.61, 0.36, 1) 0.38s both;
}

body.page-reveal-on .home-list--posts .home-item-link {
  animation: card-reveal 0.55s ease both;
}

body.page-reveal-on .home-list--posts .home-item-link:nth-child(1) { animation-delay: 0.46s; }
body.page-reveal-on .home-list--posts .home-item-link:nth-child(2) { animation-delay: 0.54s; }
body.page-reveal-on .home-list--posts .home-item-link:nth-child(3) { animation-delay: 0.62s; }
body.page-reveal-on .home-list--posts .home-item-link:nth-child(4) { animation-delay: 0.7s; }
body.page-reveal-on .home-list--posts .home-item-link:nth-child(5) { animation-delay: 0.78s; }
body.page-reveal-on .home-list--posts .home-item-link:nth-child(6) { animation-delay: 0.86s; }
body.page-reveal-on .home-list--posts .home-item-link:nth-child(7) { animation-delay: 0.94s; }
body.page-reveal-on .home-list--posts .home-item-link:nth-child(8) { animation-delay: 1.02s; }

body.page-reveal-on #tabs-section,
body.page-reveal-on #profile-tab-content,
body.page-reveal-on #user-vpn-tab-content,
body.page-reveal-on #subscribers-tab-content,
body.page-reveal-on #reality-tab-content {
  animation: section-reveal 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  body.page-reveal-on .site-header,
  body.page-reveal-on .mineweb-hero,
  body.page-reveal-on .home-panel--tiers,
  body.page-reveal-on .home-panel--posts,
  body.page-reveal-on .home-list--posts .home-item-link,
  body.page-reveal-on #tabs-section,
  body.page-reveal-on #profile-tab-content,
  body.page-reveal-on #user-vpn-tab-content,
  body.page-reveal-on #subscribers-tab-content,
  body.page-reveal-on #reality-tab-content {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .page {
    margin: 24px auto 0;
  }

  .app-view {
    margin-top: 68px;
  }

  .admin-page {
    margin: 18px 0 26px;
    padding: 0 10px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-sidebar {
    position: static;
    top: auto;
    min-height: 0;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
  }

  .admin-sidebar__title {
    margin: 0 6px 8px;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav__item {
    min-width: 180px;
    flex: 0 0 auto;
  }

  .admin-nav-group {
    min-width: 220px;
    flex: 0 0 auto;
  }

  .admin-nav-group__content {
    display: flex;
    gap: 8px;
    padding-left: 6px;
  }

  .dashboard-picker__list {
    grid-template-columns: 1fr;
  }

  .node-load-panels {
    grid-template-columns: 1fr;
  }

  .revenue-chart {
    height: 200px;
  }

  .mineweb-hero {
    min-height: 520px;
    border-radius: 18px;
  }

  .mineweb-hero--landing {
    min-height: 100svh;
    height: 100svh;
    border-radius: 0;
    margin-left: calc(50% - 50vw);
  }

  .mineweb-hero__banner {
    height: clamp(430px, 88vw, 560px);
  }

  .mineweb-hero__content {
    inset: 0 0 188px 0;
    width: calc(100% - 14px);
    padding: 12px 12px;
    grid-template-rows: auto auto 1fr auto;
    gap: 0;
  }

  .mineweb-hero__content--landing {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 28px);
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 16px;
  }

  .mineweb-hero__landing-title {
    font-size: clamp(30px, 8.6vw, 54px);
    width: 100%;
    max-width: calc(100vw - 28px);
    white-space: normal;
    text-align: center;
  }

  .mineweb-hero__cta--landing {
    font-size: 16px;
    padding: 12px 22px;
  }

  .mineweb-hero__info {
    padding: 12px;
    gap: 10px;
  }

  .mineweb-card__avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    flex-basis: 60px;
  }

  .mineweb-card__title {
    font-size: 16px;
  }

  .mineweb-hero .mineweb-card__title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .mineweb-hero__description {
    max-width: 100%;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .mineweb-hero__cta {
    width: fit-content;
    justify-content: center;
  }

  .mineweb-hero__highlights {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 178px;
    padding: 12px 12px 14px;
  }

  .mineweb-hero__highlight-divider {
    display: none;
  }

  .mineweb-hero__highlight {
    gap: 2px;
  }

  .mineweb-hero__highlight-title {
    font-size: 18px;
  }

  .mineweb-hero__highlight-text {
    font-size: 13px;
  }

  .home-panel--posts {
    width: calc(100vw - 28px);
    margin-left: calc(50% - 50vw + 14px);
    margin-right: auto;
    margin-top: 170px;
  }

  .home-list--posts {
    grid-template-columns: 1fr;
    max-height: none;
  }

  #mineweb-posts .home-item-link__title {
    -webkit-line-clamp: 2;
  }

  #mineweb-posts .home-item-link__image {
    max-height: none;
  }

  .home-bottom-bar {
    width: calc(100vw - 12px);
    margin-left: calc(50% - 50vw + 6px);
    margin-top: 122px;
    margin-bottom: 0;
    padding: 16px 14px 12px;
    border-radius: 8px 8px 0 0;
  }

  .home-panel--tiers {
    margin-top: 140px !important;
  }

  .home-list--tiers {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 24px;
  }

  .home-list--tiers > *:nth-child(1),
  .home-list--tiers > *:nth-child(2),
  .home-list--tiers > *:nth-child(3) {
    --tier-base-transform: none;
    transform: none;
  }

  .home-bottom-bar__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-bottom-bar__brand {
    font-size: 28px;
  }

  .home-bottom-bar__title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .home-bottom-bar__desc {
    font-size: 14px;
  }

  .home-bottom-bar__list {
    font-size: 14px;
    gap: 7px;
  }

  .home-bottom-bar__bottom {
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
  }

  .card {
    padding: 18px;
  }

  .profile__grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__auth {
    justify-content: flex-start;
  }

  .site-header {
    width: 100%;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 10px 14px;
    transform: none;
    flex-direction: row;
    align-items: center;
  }

  .site-header__brand {
    white-space: nowrap;
  }

  .site-header__auth {
    width: auto;
    flex-wrap: nowrap;
  }

  .site-header__auth #login-btn {
    white-space: nowrap;
  }
}



.simple-header {
  width: 100%;
  margin: 0;
  padding: 14px clamp(34px, 7vw, 120px);
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 50;
  align-items: center;
}
.simple-page { margin-top: 14px; width: min(980px, calc(100% - 24px)); }
.simple-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.simple-links a { color: #fff; }

.simple-header .site-header__auth {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.simple-header .btn--primary {
  border-radius: 999px;
}

.avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.topbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  object-fit: cover;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 254px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  background: rgba(14, 14, 16, 0.98);
  padding: 10px;
  overflow: hidden;
  z-index: 2000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.85, 0.2, 1);
  pointer-events: none;
}

.profile-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-menu__close {
  display: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.profile-menu__name {
  padding: 12px 12px;
  border-bottom: 0;
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  border-radius: 12px 12px 10px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 0;
}

.profile-menu__name-text {
  min-width: 0;
}

.profile-menu__name-text #profile-menu-name {
  font-size: 17px;
  color: #fff;
}

.profile-menu__sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.profile-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  border-radius: 14px;
  font-size: 20px;
  transition: background 0.16s ease, transform 0.16s ease;
}

.profile-menu__item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(2px);
}

.profile-menu__item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .profile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 258px;
    min-width: 258px;
    border-radius: 24px 0 0 24px;
    transform-origin: center right;
    transform: translateX(100%);
    opacity: 1;
  }

  .profile-menu.is-open {
    transform: translateX(0);
  }

  .profile-menu__close {
    display: block;
  }
}

.site-header__brand { text-decoration: none; }
.site-header__brand:hover { text-decoration: none; }

body.profile-redesign-page {
  --profile-bg: #070707;
  --profile-surface: rgba(255, 255, 255, 0.055);
  --profile-surface-strong: rgba(255, 255, 255, 0.08);
  --profile-soft: rgba(255, 255, 255, 0.62);
  --profile-muted: rgba(255, 255, 255, 0.42);
  --profile-line: rgba(255, 255, 255, 0.09);
  --profile-blue: #8fc8ff;
  --profile-good: #a9e7bd;
  --profile-danger: #ff8d8d;
  min-height: 100svh;
  background:
    radial-gradient(circle at 14% 0%, rgba(143, 200, 255, 0.08), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.055), transparent 30%),
    linear-gradient(180deg, #111 0%, var(--profile-bg) 42%, #030303 100%);
  font-family: Manrope, Inter, Segoe UI, Arial, sans-serif;
}

.profile-app {
  width: min(1480px, calc(100% - 28px));
  min-height: calc(100svh - 28px);
  margin: 14px auto;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.profile-app.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.profile-side {
  position: sticky;
  top: 14px;
  height: calc(100svh - 28px);
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(8, 8, 8, 0.98)),
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.08), transparent 36%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-side__brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.profile-side__nav {
  display: grid;
  gap: 8px;
}

.profile-nav,
.profile-side__shop {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 12px;
  background: transparent;
  color: var(--profile-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-nav:hover,
.profile-nav:focus-visible,
.profile-side__shop:hover,
.profile-side__shop:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.profile-nav.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.profile-nav__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.profile-side__shop {
  margin-top: auto;
}

.profile-side__shop img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.profile-workspace {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.profile-top {
  min-height: 76px;
  padding: 8px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-top__copy {
  min-width: 0;
}

.profile-kicker {
  display: inline-flex;
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-top h1,
.profile-section-head h2,
.profile-hero-card h2,
.profile-panel h3 {
  margin: 0;
  color: #fff;
  letter-spacing: -0.04em;
}

.profile-top h1 {
  margin-top: 5px;
  font-size: 34px;
  line-height: 1;
}

.profile-top__auth {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-login-btn,
.profile-avatar-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
}

.profile-login-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.profile-avatar-btn {
  width: 48px;
  height: 48px;
  padding: 0;
}

.profile-top__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

body.profile-redesign-page .profile-menu {
  top: calc(100% + 10px);
  border: 0;
  border-radius: 18px;
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

body.profile-redesign-page .profile-menu__name {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

body.profile-redesign-page .profile-menu__item {
  border-radius: 12px;
  font-size: 15px;
}

.profile-hero-card,
.profile-panel,
.profile-tab-panel {
  border-radius: 26px;
  background: var(--profile-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-hero-card {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 86% 10%, rgba(143, 200, 255, 0.11), transparent 30%);
}

.profile-hero-card__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-hero-card__avatar {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.profile-hero-card h2 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.05;
}

.profile-hero-card p {
  margin: 6px 0 0;
  color: var(--profile-soft);
  font-size: 14px;
}

.profile-hero-card__plan {
  min-width: 220px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0b0b0b;
  background: #f5f5f5;
  font-size: 12px;
  font-weight: 850;
}

.profile-hero-card[data-subscription-state="active"] .profile-status-pill {
  background: var(--profile-good);
}

.profile-hero-card[data-subscription-state="queued"] .profile-status-pill {
  background: #d7e9ff;
}

.profile-hero-card__plan strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.profile-hero-card__plan span:last-child {
  color: var(--profile-soft);
  font-size: 13px;
}

.profile-tab-panel {
  display: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.profile-tab-panel.is-active {
  display: block;
}

.profile-grid {
  display: grid;
  gap: 18px;
}

.profile-grid--overview {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
}

.profile-panel {
  padding: 20px;
}

.profile-panel--timeline {
  min-height: 212px;
}

.profile-panel__head,
.profile-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-panel h3,
.profile-section-head h2 {
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.08;
}

.profile-panel__hint {
  max-width: 280px;
  color: var(--profile-soft);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

body.profile-redesign-page .profile-scale {
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 0;
}

body.profile-redesign-page .profile-scale__item {
  min-width: 92px;
  display: grid;
  gap: 10px;
}

body.profile-redesign-page .profile-scale__segment {
  width: 100%;
  min-width: 54px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.profile-redesign-page .profile-scale__segment span {
  display: block;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

body.profile-redesign-page .profile-scale__segment[data-tier="issledovatel"] {
  background: linear-gradient(90deg, rgba(104, 118, 132, 0.78), rgba(137, 151, 166, 0.82));
}

body.profile-redesign-page .profile-scale__segment[data-tier="puteshestvennik"] {
  background: linear-gradient(90deg, rgba(111, 128, 143, 0.82), rgba(151, 168, 184, 0.86));
}

body.profile-redesign-page .profile-scale__segment[data-tier="traktorist"] {
  background: linear-gradient(90deg, rgba(139, 157, 174, 0.9), rgba(212, 226, 238, 0.94));
  color: #111;
}

body.profile-redesign-page .profile-scale__segment:hover,
body.profile-redesign-page .profile-scale__segment:focus-visible,
body.profile-redesign-page .profile-scale__segment.is-current {
  outline: none;
  transform: translateY(-3px);
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

body.profile-redesign-page .profile-scale__segment[data-tier="traktorist"]:hover,
body.profile-redesign-page .profile-scale__segment[data-tier="traktorist"]:focus-visible,
body.profile-redesign-page .profile-scale__segment[data-tier="traktorist"].is-current {
  color: #070707;
}

body.profile-redesign-page .profile-scale__duration {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.profile-empty-line {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--profile-muted);
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-size: 13px;
}

.profile-mini-stats {
  display: grid;
  gap: 10px;
}

.profile-mini-stat {
  min-height: 66px;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-mini-stat:hover,
.profile-mini-stat:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.profile-mini-stat span {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.profile-mini-stat small {
  color: var(--profile-soft);
  font-size: 13px;
  font-weight: 750;
}

.profile-section-head {
  margin-bottom: 14px;
  padding: 0 2px;
}

.profile-search {
  min-width: 280px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--profile-surface);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}

.profile-search input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.profile-list,
.profile-inventory-grid {
  display: grid;
  gap: 10px;
}

.profile-row-card {
  min-height: 88px;
  border-radius: 20px;
  padding: 12px;
  background: var(--profile-surface);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-row-card:hover {
  background: var(--profile-surface-strong);
  transform: translateY(-1px);
}

.profile-row-card__image {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.profile-row-card__main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}

.profile-row-card__top,
.profile-row-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-row-card__top strong {
  min-width: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row-card__top span {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-row-card__meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 650;
}

.profile-inventory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-inventory-card {
  border-radius: 22px;
  padding: 14px;
  background: var(--profile-surface);
  display: grid;
  gap: 14px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-inventory-card:hover {
  background: var(--profile-surface-strong);
  transform: translateY(-2px);
}

.profile-inventory-card__media {
  position: relative;
  aspect-ratio: 1.35 / 1;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  display: grid;
  place-items: center;
}

.profile-inventory-card__media img {
  width: 54%;
  max-height: 70%;
  object-fit: contain;
}

.profile-inventory-card__media span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 30px;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
}

.profile-inventory-card__body {
  display: grid;
  gap: 5px;
}

.profile-inventory-card__body strong {
  color: #fff;
  font-size: 16px;
}

.profile-inventory-card__body small {
  color: var(--profile-muted);
  font-size: 12px;
}

.profile-primary-action,
.profile-secondary-action,
.profile-soft-link {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0b0b;
  background: #f5f5f5;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.profile-primary-action:hover,
.profile-secondary-action:hover,
.profile-soft-link:hover {
  transform: translateY(-1px);
}

.profile-primary-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.profile-secondary-action,
.profile-soft-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.profile-vpn-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.profile-vpn-summary__item {
  min-height: 84px;
  border-radius: 20px;
  padding: 14px;
  background: var(--profile-surface);
  display: grid;
  align-content: center;
  gap: 5px;
}

.profile-vpn-summary__item--wide {
  grid-column: 1 / -1;
}

.profile-vpn-summary__item strong {
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.profile-vpn-summary__item span {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-row-card--vpn {
  position: relative;
  padding-left: 16px;
}

.profile-vpn-status {
  width: 10px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.profile-vpn-status.is-online {
  background: var(--profile-good);
  box-shadow: 0 0 18px rgba(169, 231, 189, 0.28);
}

.profile-vpn-usage {
  width: min(340px, 100%);
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-vpn-usage span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9da8b2, #edf2f5);
}

.profile-row-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-icon-action {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-icon-action:hover,
.profile-icon-action:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.profile-icon-action img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.profile-icon-action--danger img {
  filter: none;
}

.profile-empty-state,
.profile-loading {
  min-height: 170px;
  border-radius: 24px;
  background: var(--profile-surface);
  color: var(--profile-soft);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.profile-empty-state strong {
  color: #fff;
  font-size: 20px;
}

.profile-empty-state span {
  max-width: 460px;
  color: var(--profile-soft);
  font-size: 14px;
  line-height: 1.45;
}

.profile-empty-state a {
  margin-top: 8px;
  color: #fff;
  font-weight: 800;
}

.profile-empty-state--wide {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) {
  .profile-app {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .profile-side {
    padding: 14px;
    align-items: center;
  }

  .profile-side__brand span,
  .profile-nav span:last-child,
  .profile-side__shop span {
    display: none;
  }

  .profile-nav,
  .profile-side__shop {
    width: 58px;
    justify-content: center;
    padding: 0;
  }

  .profile-side__shop img {
    width: 24px;
    height: 24px;
  }

  .profile-grid--overview,
  .profile-inventory-grid,
  .profile-vpn-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .profile-app {
    width: min(100% - 16px, 720px);
    min-height: auto;
    margin: 8px auto;
    grid-template-columns: 1fr;
  }

  .profile-side {
    position: relative;
    top: 0;
    height: auto;
    border-radius: 22px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .profile-side__brand span,
  .profile-nav span:last-child,
  .profile-side__shop span {
    display: inline;
  }

  .profile-side__nav {
    display: flex;
    min-width: max-content;
  }

  .profile-nav,
  .profile-side__shop {
    width: auto;
    min-width: max-content;
    padding: 0 12px;
  }

  .profile-side__shop {
    margin-top: 0;
  }

  .profile-top,
  .profile-hero-card,
  .profile-panel__head,
  .profile-section-head,
  .profile-row-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-top h1 {
    font-size: 28px;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .profile-hero-card__plan {
    width: 100%;
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .profile-grid--overview,
  .profile-inventory-grid,
  .profile-vpn-summary {
    grid-template-columns: 1fr;
  }

  .profile-panel__hint {
    text-align: left;
  }

  .profile-search {
    width: 100%;
    min-width: 0;
  }

  .profile-row-card {
    align-items: flex-start;
  }

  .profile-row-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.landing-top {
  position: relative;
  min-height: 98svh;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.landing-top__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-top__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.35), rgba(3, 4, 9, 0.82));
}

.landing-top__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
}

.landing-top__content {
  position: relative;
  z-index: 5;
  min-height: 98svh;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 196px 24px 44px;
  width: min(980px, calc(100% - 24px));
  margin: 0;
  margin-left: clamp(56px, 9vw, 150px);
}

.landing-top__title {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 44px);
}

.landing-top__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 3px 20px 10px;
  border-radius: 999px;
  background: #1681ff;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  margin-left: -20px;
  margin-top: 16px;
}

.landing-top__subtitle {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 38px);
  color: rgba(255, 255, 255, 0.95);
  margin-top: 8px;
}

.landing-footer {
  width: 100%;
  margin: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #2b2b2f;
  border-radius: 14px 14px 0 0;
  padding: 44px clamp(20px, 5vw, 80px) 52px;
  min-height: 360px;
}

.landing-footer__grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 1fr) minmax(280px, 1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  justify-content: space-between;
}

.landing-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
}

.landing-footer__brand img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.landing-footer__text {
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.landing-footer__title {
  margin: 0 0 14px;
  font-size: 20px;
}

.landing-footer__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 10px;
  line-height: 1.45;
  font-size: 16px;
}

.landing-footer__list a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.landing-footer__list a:hover {
  text-decoration: underline;
}

.landing-footer__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.landing-footer__contact img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.landing-footer__contact-meta {
  margin: 180px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.landing-footer__legal {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.landing-footer__contacts-under-brand {
  margin-top: 42px;
}

.landing-footer__docs {
  text-align: left;
  padding-top: 0;
}

.landing-footer__docs .landing-footer__brand {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.landing-footer__docs .landing-footer__title {
  margin-top: 30px;
}

.landing-footer__left {
  padding-top: 12px;
}

@media (max-width: 860px) {
  .landing-top,
  .landing-top__content {
    min-height: 84svh;
  }

  .landing-top__pill {
    font-size: 28px;
  }

  .landing-footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}





.landing-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.landing-ticker__numbers { display: flex; align-items: center; gap: 8px; }
.landing-ticker__num {
  min-width: 74px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}
.landing-ticker__num span { display: block; font-size: 30px; font-weight: 800; line-height: 1; }
.landing-ticker__num small { display: block; margin-top: 4px; font-size: 12px; opacity: .8; }
.landing-ticker__sep { font-size: 24px; font-weight: 700; opacity: .7; }
.landing-ticker__text h3 { margin: 0; font-size: 20px; }
.landing-ticker__text p { margin: 6px 0 0; opacity: .84; }

.landing-carousel__wrap {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
}
.landing-carousel__viewport { overflow: hidden; border-radius: 14px; }
.landing-carousel__track {
  display: flex;
  transition: transform .28s ease;
}
.landing-carousel__slide { min-width: 100%; }
.landing-carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
.landing-carousel__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.landing-carousel__empty {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  opacity: .8;
}

.landing-about__text { display: grid; gap: 10px; }
.landing-about__text p { margin: 0; line-height: 1.6; opacity: .92; }

.landing-faq__list { display: grid; gap: 10px; }
.landing-faq__item { border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.03); }
.landing-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  color: #fff;
  border: 0;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.landing-faq__arrow { transition: transform .2s ease; opacity: .75; }
.landing-faq__q.is-open .landing-faq__arrow { transform: rotate(180deg); }
.landing-faq__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transition: max-height .24s ease, opacity .24s ease, padding .24s ease;
}
.landing-faq__a.is-open {
  max-height: 220px;
  opacity: .92;
  padding: 0 16px 14px;
}

.admin-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-shot {
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  padding: 8px;
  display: grid;
  gap: 8px;
}
.admin-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0,0,0,.24);
}
.admin-shot__row { display: flex; gap: 8px; align-items: center; }
.admin-shot__row .input { flex: 1; min-width: 0; }

@media (max-width: 980px) {
  .landing-ticker { grid-template-columns: 1fr; }
  .admin-screenshots-grid { grid-template-columns: 1fr; }
  .landing-carousel__wrap { grid-template-columns: 40px 1fr 40px; }
}

/* Landing redesign: frameless */
.landing-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 34px;
}

.landing-ticker__num span { font-size: 44px; }
.landing-ticker__num { min-width: 92px; background: rgba(255,255,255,.03); }

.landing-carousel { margin-top: 24px; }
.landing-carousel__wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: block;
}
.landing-carousel__viewport { border-radius: 12px; }
.landing-carousel__slide img {
  aspect-ratio: 16 / 8;
  border-radius: 12px;
}
.landing-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
#landing-carousel-prev { left: -58px; }
#landing-carousel-next { right: -58px; }

.admin-shot {
  position: relative;
  padding: 0;
  background: transparent;
}
.admin-shot img {
  border-radius: 12px;
}
.admin-shot__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
  cursor: pointer;
}
.admin-shot__remove img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(93%) saturate(4045%) hue-rotate(351deg) brightness(97%) contrast(103%);
}
.admin-shot:hover .admin-shot__remove { opacity: 1; }
.admin-shot__remove:hover {
  background: transparent;
  transform: scale(1.08);
}

@media (max-width: 980px) {
  #landing-carousel-prev { left: 8px; }
  #landing-carousel-next { right: 8px; }
  .landing-ticker__num span { font-size: 34px; }
}

/* Admin shop redesign */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/montserrat/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("/fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("/fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "42dot Sans";
  src: url("/fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --admin-shop-blue: #95aebe;
  --admin-shop-blue-strong: #b9ccda;
  --admin-shop-blue-soft: rgba(149, 174, 190, 0.08);
  --admin-shop-blue-border: rgba(149, 174, 190, 0.18);
  --admin-shop-blue-glow: rgba(149, 174, 190, 0.12);
}

.admin-shop-panel {
  display: grid;
  gap: 18px;
}

.admin-shop-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-shop-panel__subtitle {
  margin: 8px 0 0;
  max-width: 860px;
  color: rgba(240, 245, 249, 0.56);
  font-size: 14px;
  line-height: 1.55;
}

.admin-shop-panel__actions {
  margin-top: 0;
  align-self: flex-start;
}

.admin-shop-panel .btn--primary,
.admin-sheet .btn--primary {
  border-color: rgba(176, 197, 211, 0.38);
  background: linear-gradient(135deg, rgba(203, 217, 227, 0.96), rgba(138, 160, 176, 0.96));
  color: #091016;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.admin-shop-panel .btn--primary:hover,
.admin-sheet .btn--primary:hover {
  border-color: rgba(198, 215, 226, 0.62);
  background: linear-gradient(135deg, rgba(221, 230, 237, 0.98), rgba(155, 176, 191, 0.98));
}

.admin-entity-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--admin-shop-blue-border);
  border-radius: 999px;
  background: var(--admin-shop-blue-soft);
  color: rgba(232, 239, 244, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-collection-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgba(240, 245, 249, 0.5);
  background: rgba(255, 255, 255, 0.02);
}

.admin-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}

.admin-catalog-card {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(21, 24, 29, 0.98), rgba(11, 13, 17, 0.99)),
    radial-gradient(circle at top right, rgba(149, 174, 190, 0.09), transparent 54%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(161, 183, 197, 0.28);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(149, 174, 190, 0.06);
}

.admin-catalog-card.is-active {
  border-color: rgba(168, 190, 205, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(168, 190, 205, 0.08);
}

.admin-catalog-card.is-hidden {
  opacity: 0.68;
}

.admin-catalog-card.is-hidden .admin-catalog-card__media img {
  filter: grayscale(0.55) brightness(0.62);
}

.admin-catalog-card__media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.admin-catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.admin-catalog-card:hover .admin-catalog-card__media img {
  transform: scale(1.03);
}

.admin-catalog-card__body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-catalog-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.admin-catalog-card__category {
  color: rgba(240, 245, 249, 0.6);
}

.admin-catalog-card__price {
  color: #dfe8ee;
  font-weight: 800;
}

.admin-catalog-card__title {
  color: #f8fbff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.admin-catalog-card__sub {
  color: rgba(240, 245, 249, 0.42);
  font-size: 12px;
}

.admin-catalog-card__badge {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(240, 245, 249, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.admin-catalog-visibility {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(240, 245, 249, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-catalog-visibility input {
  width: 16px;
  height: 16px;
  accent-color: #67a4ff;
}

.admin-catalog-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-catalog-card__btn {
  width: 100%;
  justify-content: center;
}

.admin-catalog-card__btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-catalog-workspace {
  display: grid;
}

.admin-catalog-workspace:empty {
  display: none;
}

.admin-catalog-help,
.admin-promo-board,
.admin-sheet-panel,
.admin-sheet-aside {
  border-radius: 22px;
}

.admin-catalog-help {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 21, 27, 0.98), rgba(10, 12, 16, 0.99)),
    radial-gradient(circle at top right, rgba(149, 174, 190, 0.08), transparent 52%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.admin-catalog-help__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-catalog-help__title {
  margin: 12px 0 0;
}

.admin-catalog-help__text {
  margin: 10px 0 0;
  max-width: 760px;
  color: rgba(240, 245, 249, 0.56);
  font-size: 14px;
  line-height: 1.55;
}

.admin-catalog-help__badge {
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-catalog-help__badge span {
  color: rgba(240, 245, 249, 0.48);
  font-size: 12px;
}

.admin-catalog-help__badge strong {
  color: #f8fbff;
  font-size: 15px;
  font-weight: 700;
}

.admin-promo-sections {
  display: grid;
  gap: 16px;
}

.admin-promo-board {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 21, 27, 0.98), rgba(10, 12, 16, 0.99)),
    radial-gradient(circle at top right, rgba(149, 174, 190, 0.08), transparent 52%);
}

.admin-promo-board__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-promo-board__eyebrow {
  color: rgba(190, 210, 223, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-promo-board__head .section-subtitle {
  margin: 8px 0 0;
}

.admin-promo-board__text {
  margin: 8px 0 0;
  color: rgba(240, 245, 249, 0.5);
  font-size: 14px;
}

.admin-promo-board__actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-promo-board__count {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 245, 249, 0.68);
  font-size: 13px;
}

.admin-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.admin-promo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(19, 23, 28, 0.98), rgba(10, 12, 16, 0.99)),
    radial-gradient(circle at top right, rgba(149, 174, 190, 0.08), transparent 54%);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-promo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(161, 183, 197, 0.26);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(149, 174, 190, 0.06);
}

.admin-promo-card__sale-layout {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.admin-promo-card__sale-layout .admin-promo-card__body {
  padding: 0;
}

.admin-promo-card__thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-promo-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-promo-card__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-promo-card__body--compact {
  gap: 10px;
}

.admin-promo-card__eyebrow {
  color: rgba(190, 210, 223, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-promo-card__title {
  margin: 0;
  color: #f8fbff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-promo-card__value {
  color: #dfe8ee;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.admin-promo-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.admin-promo-card__meta {
  color: rgba(240, 245, 249, 0.46);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.admin-promo-card__chips,
.admin-sheet-summary-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(149, 174, 190, 0.16);
  background: rgba(149, 174, 190, 0.07);
  color: rgba(240, 245, 249, 0.7);
  font-size: 12px;
  white-space: nowrap;
}

.admin-mini-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.68);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.16s ease, background 0.16s ease;
}

.admin-mini-remove::before {
  content: '';
  display: block;
  width: 16px;
  height: 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d63434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h16'/%3E%3Cpath d='M8 6V4h6v2'/%3E%3Cpath d='M18 6l-1 12H5L4 6'/%3E%3Cpath d='M9 10v5'/%3E%3Cpath d='M13 10v5'/%3E%3C/svg%3E");
}

.admin-mini-remove:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.09);
}

body.admin-sheet-open {
  overflow: hidden;
}

.admin-sheet {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 20px;
}

.admin-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(10px);
}

.admin-sheet__dialog {
  position: relative;
  width: min(1080px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(15, 18, 23, 0.995), rgba(9, 11, 14, 0.995)),
    radial-gradient(circle at top right, rgba(149, 174, 190, 0.12), transparent 54%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: admin-sheet-in 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.admin-sheet__handle {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  justify-self: center;
  margin-top: 12px;
}

.admin-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
}

.admin-sheet__titles {
  min-width: 0;
}

.admin-sheet__kicker {
  color: rgba(190, 210, 223, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sheet__title {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.08;
  color: #ffffff;
}

.admin-sheet__subtitle {
  margin: 8px 0 0;
  color: rgba(240, 245, 249, 0.56);
  font-size: 14px;
  line-height: 1.5;
}

.admin-sheet__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.admin-sheet__close:hover {
  transform: scale(1.04);
  background: rgba(149, 174, 190, 0.16);
}

.admin-sheet__body {
  padding: 0 22px 22px;
  overflow: auto;
}

.admin-sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sheet__footnote {
  margin: 0;
  max-width: 760px;
  color: rgba(240, 245, 249, 0.48);
  font-size: 13px;
  line-height: 1.55;
}

.admin-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.admin-sheet-layout--wide {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.admin-sheet-panel,
.admin-sheet-aside {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.admin-sheet-panel {
  display: grid;
  gap: 14px;
}

.admin-sheet-panel--spacious {
  gap: 16px;
}

.admin-sheet-panel__section {
  display: grid;
  gap: 12px;
}

.admin-sheet-panel__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-sheet-panel__label {
  color: #f7fbff;
  font-size: 16px;
  font-weight: 700;
}

.admin-sheet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-sheet-form-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-sheet-form-grid--double {
  margin-top: 2px;
}

.admin-condition-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-condition-chip {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(149, 174, 190, 0.22);
  background: rgba(149, 174, 190, 0.08);
  color: rgba(240, 245, 249, 0.78);
}

.admin-condition-chip:hover {
  border-color: rgba(177, 197, 210, 0.34);
  background: rgba(149, 174, 190, 0.12);
}

.admin-condition-stack {
  display: grid;
  gap: 12px;
}

.admin-condition-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-condition-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-condition-card__title {
  color: #f7fbff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-condition-card__remove {
  border: 0;
  background: transparent;
  color: rgba(240, 245, 249, 0.48);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.16s ease;
}

.admin-condition-card__remove:hover {
  color: rgba(240, 245, 249, 0.78);
}

.admin-inline-empty {
  padding: 16px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: rgba(240, 245, 249, 0.5);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  line-height: 1.5;
}

.admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-toggle-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-toggle-card.is-active {
  border-color: rgba(149, 174, 190, 0.26);
  background: rgba(149, 174, 190, 0.08);
  box-shadow: inset 0 0 0 1px rgba(149, 174, 190, 0.06);
}

.admin-toggle-card__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-toggle-card__title {
  color: #f7fbff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-toggle-card__text {
  color: rgba(240, 245, 249, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.admin-field--muted {
  opacity: 0.56;
}

.admin-sheet-summary-card {
  display: grid;
  gap: 16px;
}

.admin-sheet-summary-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-sheet-summary-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-sheet-summary-card__content {
  display: grid;
  gap: 12px;
}

.admin-sheet-summary-card__eyebrow {
  color: rgba(240, 245, 249, 0.44);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sheet-summary-card__title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.admin-sheet-summary-card__value {
  color: #dfe8ee;
  font-size: 20px;
  font-weight: 800;
}

.admin-sheet-summary-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.admin-sheet-summary-card__meta > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-sheet-summary-card__meta span {
  color: rgba(240, 245, 249, 0.48);
  font-size: 12px;
}

.admin-sheet-summary-card__meta strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

@keyframes admin-sheet-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1120px) {
  .admin-sheet-layout,
  .admin-sheet-layout--wide {
    grid-template-columns: 1fr;
  }

  .admin-user-row__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-row__top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-user-row__edit {
    width: max-content;
    justify-self: end;
  }

  .admin-user-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-sheet-form-grid--triple,
  .admin-toggle-grid,
  .admin-sheet-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-users-head,
  .admin-users-actions,
  .admin-users-search {
    width: 100%;
  }

  .admin-audit-search,
  .admin-audit-select {
    width: 100%;
    min-width: 0;
  }

  .admin-users-actions {
    justify-content: stretch;
  }

  .admin-user-row__facts,
  .admin-user-row__top,
  .admin-user-editor-grid,
  .admin-user-data-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-row__edit {
    width: 100%;
    justify-self: stretch;
  }

  .admin-user-row__status-wrap {
    justify-content: flex-start;
  }

  .admin-user-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-user-summary__badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .admin-sheet {
    padding: 10px;
  }

  .admin-sheet__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .admin-sheet__head,
  .admin-sheet__body,
  .admin-sheet__foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-promo-board__actions,
  .admin-shop-panel__actions,
  .admin-users-actions,
  .admin-sheet__foot {
    width: 100%;
    justify-content: stretch;
  }

  .admin-promo-board__actions > *,
  .admin-shop-panel__actions > *,
  .admin-users-actions > *,
  .admin-sheet__foot > .btn {
    width: 100%;
  }

  .admin-promo-grid,
  .admin-catalog-grid {
    grid-template-columns: 1fr;
  }

  .admin-catalog-help__badge,
  .admin-promo-card__sale-layout {
    grid-template-columns: 1fr;
  }

  .admin-user-sheet__tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-user-sheet__tab {
    flex: 1;
  }

  .admin-user-form-grid,
  .admin-user-config {
    grid-template-columns: 1fr;
  }
}

/* Admin screenshots polish */
.admin-screenshots-panel .profile__title {
  margin: 0;
}

.admin-screenshots-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-screenshots-subtitle {
  margin: 6px 0 0;
  color: rgba(245, 245, 245, 0.66);
  font-size: 13px;
}

.admin-screenshots-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-screenshots-count {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(245, 245, 245, 0.76);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  white-space: nowrap;
}

.admin-screenshots-refresh {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.admin-screenshots-refresh img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.admin-screenshots-refresh:hover {
  transform: rotate(12deg);
  opacity: 0.82;
}

.admin-screenshots-refresh:focus-visible {
  outline: none;
}

.admin-screenshots-refresh:disabled {
  opacity: 0.5;
  cursor: wait;
}

.admin-upload-zone {
  margin-top: 16px;
  min-height: 112px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.admin-upload-zone:hover,
.admin-upload-zone:focus-visible,
.admin-upload-zone.is-dragging {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
  outline: none;
}

.admin-upload-zone.is-uploading {
  cursor: wait;
  opacity: 0.78;
}

.admin-upload-zone__title {
  color: #f5f5f5;
  font-weight: 700;
}

.admin-upload-zone__hint {
  color: rgba(245, 245, 245, 0.58);
  font-size: 13px;
}

.admin-screenshots-grid {
  margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.admin-shot {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  cursor: grab;
  user-select: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.admin-shot::after {
  content: "";
  position: absolute;
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(97, 214, 255, 0.98), rgba(88, 167, 255, 0.98));
  box-shadow: 0 0 14px rgba(82, 187, 255, 0.36);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-shot:active,
.admin-shot.is-dragging {
  cursor: grabbing;
}

.admin-shot--recent {
  border-color: rgba(255, 96, 96, 0.3);
  box-shadow: 0 0 18px rgba(255, 86, 86, 0.14);
}

.admin-shot.is-dragging {
  opacity: 0.58;
  transform: scale(0.985);
  border-color: rgba(97, 214, 255, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.admin-shot.is-drop-target {
  border-color: rgba(97, 214, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(97, 214, 255, 0.2), 0 14px 30px rgba(15, 126, 180, 0.18);
}

.admin-shot.is-drop-target::after {
  opacity: 1;
}

.admin-shot.is-drop-target.is-drop-horizontal::after {
  top: 12px;
  bottom: 12px;
  left: 10px;
  width: 4px;
}

.admin-shot.is-drop-target.is-drop-horizontal.is-drop-after::after {
  left: auto;
  right: 10px;
}

.admin-shot.is-drop-target.is-drop-vertical::after {
  top: 10px;
  left: 12px;
  right: 12px;
  height: 4px;
}

.admin-shot.is-drop-target.is-drop-vertical.is-drop-after::after {
  top: auto;
  bottom: 10px;
}

.admin-shot__preview {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.admin-shot.is-dragging .admin-shot__preview {
  cursor: grabbing;
}

.admin-shot__preview img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.admin-shot:hover .admin-shot__preview img {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.admin-shot--recent .admin-shot__preview img {
  box-shadow: inset 0 0 0 1px rgba(255, 96, 96, 0.18);
}

.admin-shot__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px 9px 12px;
}

.admin-shot__name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(245, 245, 245, 0.78);
  font-size: 13px;
}

.admin-shot__remove {
  position: static;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  opacity: 1;
  padding: 0;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.admin-shot__remove img {
  display: none;
}

.admin-shot__remove::before {
  content: '';
  display: block;
  width: 17px;
  height: 19px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d63434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.admin-shot__remove:hover {
  background: transparent;
  transform: scale(1.08);
}

.admin-shot__remove:focus-visible {
  outline: 2px solid rgba(255, 150, 150, 0.68);
  outline-offset: 2px;
}

.admin-shot__remove:disabled {
  opacity: 0.44;
  cursor: wait;
}

.admin-shot.is-deleting {
  opacity: 0.56;
  pointer-events: none;
}

.admin-screenshots-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: rgba(245, 245, 245, 0.62);
}

body.modal-open {
  overflow: hidden;
}

body.admin-lightbox-open .site-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
}

.admin-shot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(6px);
}

.admin-shot-lightbox__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 36px;
}

.admin-shot-lightbox__image {
  width: min(94vw, 1700px);
  max-height: min(92vh, 1200px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
  background: rgba(0, 0, 0, 0.2);
}

.admin-shot-lightbox__action,
.admin-shot-lightbox__close {
  position: fixed;
  top: 18px;
  z-index: 4002;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.admin-shot-lightbox__download {
  left: 18px;
}

.admin-shot-lightbox__download img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.admin-shot-lightbox__close {
  right: 18px;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.admin-shot-lightbox__action:hover,
.admin-shot-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.04);
}

.admin-shot-lightbox__action:focus-visible,
.admin-shot-lightbox__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .admin-screenshots-head {
    display: grid;
  }

  .admin-screenshots-tools {
    justify-self: start;
  }

  .admin-shot-lightbox__content {
    padding: 18px;
  }

  .admin-shot-lightbox__image {
    width: min(96vw, 1700px);
    max-height: 88vh;
    border-radius: 12px;
  }
}

/* Gallery v2 */
.landing-gallery {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 12px;
}
.landing-gallery__stage {
  display: grid;
  grid-template-columns: 1fr 2.7fr 1fr;
  gap: 24px;
  align-items: center;
}
.landing-gallery__main img,
.landing-gallery__side img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.landing-gallery__main img {
  aspect-ratio: 16 / 8;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.landing-gallery__side img {
  aspect-ratio: 16 / 12;
  border-radius: 14px;
  opacity: .2;
  filter: saturate(.7);
}
.landing-gallery__side {
  transform: scale(.94);
  transition: transform .2s ease, opacity .2s ease;
}
.landing-gallery__side:hover { transform: scale(.97); }

.landing-carousel__arrow {
  position: relative;
  top: auto;
  transform: none;
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  .landing-gallery {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
  }
  .landing-gallery__stage {
    grid-template-columns: 0 1fr 0;
    gap: 0;
  }
  .landing-gallery__side { display: none; }
}

/* Gallery upscale + animation */
.landing-gallery {
  max-width: 1240px;
  grid-template-columns: 70px 1fr 70px;
}
.landing-gallery__stage {
  grid-template-columns: 1.15fr 3.3fr 1.15fr;
  gap: 28px;
}
.landing-gallery__main img {
  aspect-ratio: 16 / 7.5;
  border-radius: 20px;
  transition: transform .38s cubic-bezier(.2,.7,.2,1), opacity .28s ease, filter .28s ease;
}
.landing-gallery__side img {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  opacity: .28;
  filter: saturate(.72) blur(.2px);
  transition: transform .3s ease, opacity .3s ease, filter .3s ease;
}

.gallery-anim-next .landing-gallery__main img {
  transform: translateX(18px) scale(.985);
  opacity: .72;
  filter: brightness(.88);
}
.gallery-anim-prev .landing-gallery__main img {
  transform: translateX(-18px) scale(.985);
  opacity: .72;
  filter: brightness(.88);
}
.gallery-anim-next .landing-gallery__side--right img,
.gallery-anim-prev .landing-gallery__side--left img {
  opacity: .45;
  transform: scale(1.03);
  filter: saturate(.9);
}

@media (max-width: 980px) {
  .landing-gallery { max-width: 100%; }
  .landing-gallery__main img { aspect-ratio: 16 / 8.5; }
}

/* Gallery final sizing + new animation */
.landing-carousel { margin-top: 34px; }
.landing-carousel .landing-gallery {
  max-width: 1400px;
  width: min(96vw, 1400px);
  grid-template-columns: 76px 1fr 76px;
}
.landing-carousel .landing-gallery__stage {
  grid-template-columns: 1.25fr 4fr 1.25fr;
  gap: 34px;
}
.landing-carousel .landing-gallery__main img {
  aspect-ratio: 16 / 7;
  border-radius: 22px;
}
.landing-carousel .landing-gallery__side img {
  aspect-ratio: 16 / 9;
  opacity: .34;
}

.landing-gallery__main img.is-enter-next {
  animation: galleryEnterNext .42s cubic-bezier(.2,.75,.2,1);
}
.landing-gallery__main img.is-enter-prev {
  animation: galleryEnterPrev .42s cubic-bezier(.2,.75,.2,1);
}

@keyframes galleryEnterNext {
  0% { transform: translateX(48px) scale(.96); opacity: 0; filter: blur(2px) brightness(.9); }
  100% { transform: translateX(0) scale(1); opacity: 1; filter: blur(0) brightness(1); }
}
@keyframes galleryEnterPrev {
  0% { transform: translateX(-48px) scale(.96); opacity: 0; filter: blur(2px) brightness(.9); }
  100% { transform: translateX(0) scale(1); opacity: 1; filter: blur(0) brightness(1); }
}

/* disable old body-based animation */
.gallery-anim-next .landing-gallery__main img,
.gallery-anim-prev .landing-gallery__main img,
.gallery-anim-next .landing-gallery__side--right img,
.gallery-anim-prev .landing-gallery__side--left img { transform: none; opacity: inherit; filter: inherit; }

@media (max-width: 980px) {
  .landing-carousel .landing-gallery { width: 100%; max-width: 100%; }
  .landing-carousel .landing-gallery__main img { aspect-ratio: 16 / 8; border-radius: 16px; }
}

/* ===== Final Gallery Override ===== */
.landing-carousel {
  margin-top: 46px;
  opacity: 0;
  transform: translateY(28px);
  animation: gallerySectionIn .7s cubic-bezier(.22,.61,.36,1) .08s forwards;
}
@keyframes gallerySectionIn {
  to { opacity: 1; transform: translateY(0); }
}

.landing-carousel .landing-gallery {
  width: min(98vw, 1500px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 10px;
}
.landing-carousel .landing-gallery__stage {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  align-items: center;
  gap: 28px;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
}

.landing-carousel .landing-gallery__main,
.landing-carousel .landing-gallery__side {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.landing-carousel .landing-gallery__main {
  transform: scale(1);
  filter: brightness(1) blur(0);
  transition: transform .42s cubic-bezier(.4,0,.2,1), filter .42s cubic-bezier(.4,0,.2,1);
}
.landing-carousel .landing-gallery__side {
  cursor: pointer;
  transform: scale(.8);
  filter: brightness(.35) blur(2px);
  transition: transform .42s cubic-bezier(.4,0,.2,1), filter .42s cubic-bezier(.4,0,.2,1), box-shadow .24s ease;
}
.landing-carousel .landing-gallery__side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  pointer-events: none;
}
.landing-carousel .landing-gallery__side:hover {
  filter: brightness(.5) blur(1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
}

.landing-carousel .landing-gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
  will-change: transform;
}
.landing-carousel .landing-gallery__main img { aspect-ratio: 16 / 7; }
.landing-carousel .landing-gallery__side img { aspect-ratio: 16 / 9; }

.landing-carousel .landing-gallery__stage.is-shifting-next .landing-gallery__main {
  transform: translateX(-8%) scale(.9);
  filter: brightness(.45) blur(1.8px);
}
.landing-carousel .landing-gallery__stage.is-shifting-next .landing-gallery__side--right {
  transform: scale(1);
  filter: brightness(.9) blur(0);
}
.landing-carousel .landing-gallery__stage.is-shifting-prev .landing-gallery__main {
  transform: translateX(8%) scale(.9);
  filter: brightness(.45) blur(1.8px);
}
.landing-carousel .landing-gallery__stage.is-shifting-prev .landing-gallery__side--left {
  transform: scale(1);
  filter: brightness(.9) blur(0);
}

.landing-carousel .landing-carousel__arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.44);
  background: rgba(44,44,44,.55);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.landing-carousel .landing-carousel__arrow:hover {
  background: rgba(74,74,74,.72);
  transform: scale(1.04);
}

@media (max-width: 980px) {
  .landing-carousel .landing-gallery {
    grid-template-columns: 54px 1fr 54px;
    width: min(100vw, 980px);
  }
  .landing-carousel .landing-gallery__stage {
    grid-template-columns: 0 1fr 0;
    gap: 0;
  }
  .landing-carousel .landing-gallery__side { display: none; }
  .landing-carousel .landing-gallery__main img { aspect-ratio: 16 / 9; }
}

/* ===== Gallery hard-fix (center + animation) ===== */
.landing-carousel {
  width: 100% !important;
}
.landing-carousel .landing-gallery {
  width: min(96vw, 1420px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) 74px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}
.landing-carousel .landing-gallery__stage {
  width: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 2.3fr 1fr !important;
  align-items: center !important;
  gap: 24px !important;
}

.landing-carousel .landing-gallery__main,
.landing-carousel .landing-gallery__side {
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
}
.landing-carousel .landing-gallery__main {
  transform: scale(1) !important;
  filter: brightness(1) blur(0) !important;
}
.landing-carousel .landing-gallery__side {
  transform: scale(.8) !important;
  filter: brightness(.3) blur(2px) !important;
  cursor: pointer !important;
}
.landing-carousel .landing-gallery__side::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.64) !important;
  pointer-events: none !important;
}
.landing-carousel .landing-gallery__side:hover {
  filter: brightness(.45) blur(1px) !important;
}

.landing-carousel .landing-gallery img {
  width: 100% !important;
  display: block !important;
  object-fit: cover !important;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease, filter .3s ease !important;
}
.landing-carousel .landing-gallery__main img { aspect-ratio: 16 / 7.1 !important; }
.landing-carousel .landing-gallery__side img { aspect-ratio: 16 / 9 !important; }

.landing-carousel .landing-gallery__stage.is-shift-out-next .landing-gallery__main,
.landing-carousel .landing-gallery__stage.is-shift-out-prev .landing-gallery__main {
  transform: scale(.94) !important;
  filter: brightness(.55) blur(1.4px) !important;
  opacity: .35 !important;
  transition: all .18s ease !important;
}
.landing-carousel .landing-gallery__stage.is-shift-in-next .landing-gallery__main,
.landing-carousel .landing-gallery__stage.is-shift-in-prev .landing-gallery__main {
  animation: galleryMainIn .24s cubic-bezier(.2,.8,.2,1) !important;
}
@keyframes galleryMainIn {
  from { transform: translateY(10px) scale(.96); opacity: .52; filter: blur(1.2px) brightness(.75); }
  to { transform: translateY(0) scale(1); opacity: 1; filter: blur(0) brightness(1); }
}

.landing-carousel .landing-carousel__arrow {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  background: rgba(36,36,36,.62) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 32px !important;
}

@media (max-width: 980px) {
  .landing-carousel .landing-gallery {
    width: min(100vw, 980px) !important;
    grid-template-columns: 50px minmax(0, 1fr) 50px !important;
  }
  .landing-carousel .landing-gallery__stage {
    grid-template-columns: 0 1fr 0 !important;
    gap: 0 !important;
  }
  .landing-carousel .landing-gallery__side { display: none !important; }
  .landing-carousel .landing-gallery__main img { aspect-ratio: 16 / 9 !important; }
}

/* ===== Isolated Screenshot Module (mw-gallery) ===== */
.landing-carousel { width: 100%; }
.landing-carousel h2 { text-align: center; margin-bottom: 14px; }

.mw-gallery {
  width: min(100%, 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
}

.mw-gallery__viewport {
  overflow: hidden;
  width: 100%;
}

.mw-gallery__track {
  display: flex;
  gap: 20px;
  align-items: center;
  will-change: transform;
}

.mw-gallery__slide {
  width: clamp(660px, 72vw, 980px);
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  transform: scale(.82);
  filter: brightness(.34) blur(1.8px);
  opacity: .8;
  transition: transform .62s cubic-bezier(.22,.61,.36,1), filter .62s cubic-bezier(.22,.61,.36,1), opacity .62s ease;
  position: relative;
}

.mw-gallery__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.56);
  pointer-events: none;
  transition: opacity .42s ease;
}

.mw-gallery__slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
}

.mw-gallery__slide.is-active {
  transform: scale(1);
  filter: brightness(1) blur(0);
  opacity: 1;
  z-index: 2;
}
.mw-gallery__slide.is-active::after {
  opacity: 0;
}

.mw-gallery__slide:not(.is-active):hover {
  filter: brightness(.48) blur(1px);
}

.mw-gallery__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(40,40,40,.62);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.mw-gallery__arrow:hover {
  background: rgba(64,64,64,.8);
  transform: scale(1.04);
}

.mw-gallery__meta {
  width: min(100%, 1360px);
  margin: 10px auto 0;
  text-align: center;
}
.mw-gallery__counter {
  display: inline-block;
  font-size: 14px;
  opacity: .78;
}

.mw-gallery__track.is-stack-next .mw-gallery__slide.is-active,
.mw-gallery__track.is-stack-prev .mw-gallery__slide.is-active {
  transform: scale(.92) translateY(8px);
  filter: brightness(.55) blur(1.4px);
  opacity: .42;
  transition: all .22s ease;
}

.mw-gallery__track.is-enter-next .mw-gallery__slide.is-active,
.mw-gallery__track.is-enter-prev .mw-gallery__slide.is-active {
  animation: mwCardIn .24s cubic-bezier(.2,.8,.2,1);
}

@keyframes mwCardIn {
  from { transform: translateY(12px) scale(.95); opacity: .45; filter: blur(1.2px) brightness(.78); }
  to { transform: translateY(0) scale(1); opacity: 1; filter: blur(0) brightness(1); }
}

.mw-gallery__empty {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  opacity: .7;
}

@media (max-width: 980px) {
  .mw-gallery {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
  }
  .mw-gallery__slide {
    width: calc(100vw - 132px);
    min-width: calc(100vw - 132px);
  }
  .mw-gallery__slide img {
    aspect-ratio: 16 / 9;
  }
  .mw-gallery__arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
}

/* ===== mw-gallery polish per latest request ===== */
.mw-gallery {
  width: min(100%, 1240px) !important;
  grid-template-columns: 60px minmax(0, 1fr) 60px !important;
}

.mw-gallery__viewport {
  overflow: hidden;
}

.mw-gallery__track {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mw-gallery__slide {
  width: clamp(560px, 62vw, 780px) !important;
  border-radius: 20px !important;
  transform: scale(.82);
  filter: brightness(.28) blur(1.8px);
  transition: transform .62s cubic-bezier(.22,.61,.36,1), filter .62s cubic-bezier(.22,.61,.36,1), opacity .62s ease;
}

.mw-gallery__slide img {
  aspect-ratio: 16 / 8.5 !important;
  border-radius: 20px !important;
}

.mw-gallery__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(0,0,0,.62);
}

.mw-gallery__slide.is-active {
  transform: scale(1);
  filter: brightness(1) blur(0);
  opacity: 1;
}

.mw-gallery__slide.is-active::after {
  opacity: 0;
}

/* arrows centering fix */
.mw-gallery__arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 30px !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.mw-gallery__arrow::before {
  display: block;
  transform: translateY(-1px);
}

/* card-like transition */
#mw-gallery.is-moving-next .mw-gallery__slide.is-active {
  transform: translateX(-8%) scale(.9);
  filter: brightness(.5) blur(1.4px);
}
#mw-gallery.is-moving-prev .mw-gallery__slide.is-active {
  transform: translateX(8%) scale(.9);
  filter: brightness(.5) blur(1.4px);
}

@media (max-width: 980px) {
  .mw-gallery {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  }
  .mw-gallery__slide {
    width: calc(100vw - 140px) !important;
    min-width: calc(100vw - 140px) !important;
  }
}

/* ===== final gallery fixes + fullscreen ===== */
.mw-gallery {
  width: min(100%, 1180px) !important;
  grid-template-columns: 56px minmax(0, 1fr) 56px !important;
  gap: 10px !important;
}

.mw-gallery__viewport {
  overflow: hidden;
  padding-inline: 0;
}

.mw-gallery__track {
  gap: 14px !important;
}

.mw-gallery__slide {
  width: clamp(520px, 58vw, 700px) !important;
  border-radius: 18px !important;
  transform: scale(.8);
  filter: brightness(.26) blur(1.6px);
  transition: transform .38s cubic-bezier(.22,.61,.36,1), filter .38s cubic-bezier(.22,.61,.36,1), opacity .38s ease !important;
}
.mw-gallery__slide img {
  border-radius: 18px !important;
}
.mw-gallery__slide::after {
  background: rgba(0,0,0,.64) !important;
}
.mw-gallery__slide.is-active {
  transform: scale(1);
  filter: brightness(1) blur(0);
}

/* side preview feel */
#mw-gallery.is-moving-next .mw-gallery__slide.is-active {
  transform: translateX(-7%) scale(.9);
  filter: brightness(.52) blur(1.3px);
}
#mw-gallery.is-moving-prev .mw-gallery__slide.is-active {
  transform: translateX(7%) scale(.9);
  filter: brightness(.52) blur(1.3px);
}

.mw-gallery__arrow {
  width: 46px !important;
  height: 46px !important;
  font-size: 28px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

/* fullscreen */
.mw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.mw-lightbox.is-open {
  display: grid;
  place-items: center;
}
.mw-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(4px);
  animation: mwLbFade .22s ease;
}
.mw-lightbox__image {
  position: relative;
  z-index: 2;
  width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  animation: mwLbIn .24s cubic-bezier(.22,.61,.36,1);
}
.mw-lightbox__image.is-swap {
  animation: mwLbSwap .2s ease;
}
.mw-lightbox__arrow,
.mw-lightbox__close {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(32,32,32,.62);
  color: #fff;
  cursor: pointer;
}
.mw-lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 32px;
}
.mw-lightbox__arrow--left { left: 24px; }
.mw-lightbox__arrow--right { right: 24px; }
.mw-lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
}
.mw-lightbox__counter {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20,20,20,.66);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 13px;
}

@keyframes mwLbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mwLbIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes mwLbSwap { from { opacity: .45; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 980px) {
  .mw-gallery__slide {
    width: calc(100vw - 136px) !important;
    min-width: calc(100vw - 136px) !important;
  }
  .mw-lightbox__arrow { width: 44px; height: 44px; font-size: 26px; }
  .mw-lightbox__arrow--left { left: 10px; }
  .mw-lightbox__arrow--right { right: 10px; }
}

/* final gallery tune */
.mw-gallery {
  width: min(100%, 1120px) !important;
  grid-template-columns: 56px minmax(0, 1fr) 56px !important;
}

.mw-gallery__track {
  gap: 12px !important;
}

.mw-gallery__slide {
  width: clamp(460px, 52vw, 620px) !important;
}

.mw-gallery__arrow {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}

#mw-gallery-prev,
#mw-gallery-next {
  transform: translateY(-1px) !important;
}

/* fullscreen: no swap animation */
.mw-lightbox__image,
.mw-lightbox__image.is-swap {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 980px) {
  .mw-gallery {
    width: min(100%, 1000px) !important;
  }
  .mw-gallery__slide {
    width: calc(100vw - 150px) !important;
    min-width: calc(100vw - 150px) !important;
  }
}

/* Landing: reveal on scroll */
[data-reveal] {
  --reveal-delay: 0ms;
  --reveal-translate-x: 0px;
  --reveal-translate-y: 34px;
  --reveal-scale: 0.985;
  opacity: 0;
  transform: translate3d(var(--reveal-translate-x), var(--reveal-translate-y), 0) scale(var(--reveal-scale));
  filter: blur(8px);
  will-change: transform, opacity, filter;
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay);
}

[data-reveal="left"] {
  --reveal-translate-x: -52px;
  --reveal-translate-y: 14px;
}

[data-reveal="right"] {
  --reveal-translate-x: 52px;
  --reveal-translate-y: 14px;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Gallery speed-up */
#mw-gallery .mw-gallery__slide {
  transition:
    transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease !important;
}

#mw-gallery.is-moving-next .mw-gallery__slide.is-active {
  transform: translateX(-5%) scale(0.94);
  filter: brightness(0.62) blur(1px);
}

#mw-gallery.is-moving-prev .mw-gallery__slide.is-active {
  transform: translateX(5%) scale(0.94);
  filter: brightness(0.62) blur(1px);
}

/* Profile redesign v2: side rail */
body.profile-redesign-page {
  --profile-bg: #111111;
  --profile-side: #17191a;
  --profile-side-top: #1a1c1e;
  --profile-card: rgba(255, 255, 255, 0.055);
  --profile-card-2: rgba(255, 255, 255, 0.085);
  --profile-text: #f7f7f7;
  --profile-soft: rgba(255, 255, 255, 0.62);
  --profile-muted: rgba(255, 255, 255, 0.38);
  --profile-line: rgba(255, 255, 255, 0.08);
  --profile-good: #c7f2d2;
  --profile-danger: #ff8b8b;
  min-height: 100svh;
  background: var(--profile-bg);
  color: var(--profile-text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

body.profile-redesign-page .profile-side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1200;
  width: 129px;
  height: 100svh;
  padding: 0;
  border-radius: 0 20px 20px 0;
  background: var(--profile-side);
  box-shadow: none;
  display: block;
  overflow: hidden;
  transition: width 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.profile-redesign-page .profile-side:hover,
body.profile-redesign-page .profile-side:focus-within {
  width: 321px;
}

body.profile-redesign-page .profile-side__head {
  position: relative;
  height: 147px;
  border-radius: 0 20px 0 0;
  background: var(--profile-side-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.profile-redesign-page .profile-side__brand {
  position: absolute;
  left: 3px;
  top: 50px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

body.profile-redesign-page .profile-side__brand img {
  width: 69px;
  height: 69px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-side__brand span {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.profile-redesign-page .profile-side:hover .profile-side__brand span,
body.profile-redesign-page .profile-side:focus-within .profile-side__brand span {
  opacity: 1;
  transform: translateX(0);
}

body.profile-redesign-page .profile-side__chevron {
  position: absolute;
  top: 79px;
  right: 28px;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

body.profile-redesign-page .profile-side:hover .profile-side__chevron,
body.profile-redesign-page .profile-side:focus-within .profile-side__chevron {
  transform: rotate(180deg);
}

body.profile-redesign-page .profile-side__nav {
  display: grid;
  gap: 6px;
  padding: 36px 0 0;
}

body.profile-redesign-page .profile-nav {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 41px;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  align-items: center;
  gap: 22px;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

body.profile-redesign-page .profile-nav:hover,
body.profile-redesign-page .profile-nav:focus-visible,
body.profile-redesign-page .profile-nav.is-active {
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

body.profile-redesign-page .profile-nav__icon {
  width: 25px;
  height: 25px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}

body.profile-redesign-page .profile-nav span {
  opacity: 0;
  transform: translateX(-8px);
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.profile-redesign-page .profile-side:hover .profile-nav span,
body.profile-redesign-page .profile-side:focus-within .profile-nav span {
  opacity: 1;
  transform: translateX(0);
}

body.profile-redesign-page .profile-workspace {
  width: min(1240px, calc(100% - 176px));
  min-height: 100svh;
  margin-left: 129px;
  padding: 56px 46px 72px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

body.profile-redesign-page .profile-workspace.is-ready {
  opacity: 1;
  transform: translateY(0);
}

body.profile-redesign-page .profile-top {
  min-height: 72px;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.profile-redesign-page .profile-top__copy span {
  display: inline-flex;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.profile-redesign-page .profile-top h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 42px;
  line-height: 0.95;
  font-weight: 760;
  letter-spacing: -0.055em;
}

body.profile-redesign-page .profile-top__auth {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.profile-redesign-page .profile-login-btn,
body.profile-redesign-page .profile-avatar-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

body.profile-redesign-page .profile-login-btn {
  padding: 0 16px;
}

body.profile-redesign-page .profile-login-btn img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-avatar-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  background: transparent;
}

body.profile-redesign-page .profile-top__avatar {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  object-fit: cover;
}

body.profile-redesign-page .profile-menu {
  top: calc(100% + 8px);
  border: 0;
  border-radius: 18px;
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.profile-redesign-page .profile-menu__item {
  font-size: 15px;
  border-radius: 12px;
}

body.profile-redesign-page .profile-tab-panel {
  display: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.profile-redesign-page .profile-tab-panel.is-active {
  display: grid;
  gap: 16px;
}

body.profile-redesign-page .profile-profile-card,
body.profile-redesign-page .profile-panel,
body.profile-redesign-page .profile-row-card,
body.profile-redesign-page .profile-inventory-card,
body.profile-redesign-page .profile-vpn-summary__item,
body.profile-redesign-page .profile-empty-state,
body.profile-redesign-page .profile-loading {
  border: 0;
  border-radius: 20px;
  background: var(--profile-card);
  box-shadow: none;
}

body.profile-redesign-page .profile-profile-card {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.profile-redesign-page .profile-profile-card__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

body.profile-redesign-page .profile-profile-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

body.profile-redesign-page .profile-profile-card__name {
  min-width: 0;
}

body.profile-redesign-page .profile-profile-card__name span,
body.profile-redesign-page .profile-kicker {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.profile-redesign-page .profile-profile-card__name h2,
body.profile-redesign-page .profile-panel h3,
body.profile-redesign-page .profile-section-head h2 {
  margin: 5px 0 0;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

body.profile-redesign-page .profile-profile-card__name h2 {
  font-size: 28px;
}

body.profile-redesign-page .profile-profile-card__name p {
  margin: 6px 0 0;
  color: var(--profile-soft);
  font-size: 14px;
}

body.profile-redesign-page .profile-subtle-subscription {
  min-width: 210px;
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

body.profile-redesign-page .profile-subtle-subscription span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

body.profile-redesign-page .profile-profile-card[data-subscription-state="active"] .profile-subtle-subscription span {
  background: rgba(199, 242, 210, 0.18);
  color: var(--profile-good);
}

body.profile-redesign-page .profile-subtle-subscription strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

body.profile-redesign-page .profile-subtle-subscription small {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 650;
}

body.profile-redesign-page .profile-panel {
  padding: 20px;
}

body.profile-redesign-page .profile-panel__head,
body.profile-redesign-page .profile-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

body.profile-redesign-page .profile-panel__head--compact {
  margin-bottom: 12px;
}

body.profile-redesign-page .profile-panel h3 {
  font-size: 23px;
}

body.profile-redesign-page .profile-panel__hint {
  max-width: 360px;
  color: var(--profile-soft);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

body.profile-redesign-page .profile-scale {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 0 0;
}

body.profile-redesign-page .profile-scale__item {
  min-width: 94px;
  display: grid;
  gap: 9px;
}

body.profile-redesign-page .profile-scale__segment {
  position: relative;
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

body.profile-redesign-page .profile-scale__segment:hover,
body.profile-redesign-page .profile-scale__segment:focus-visible,
body.profile-redesign-page .profile-scale__segment.is-current {
  outline: none;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

body.profile-redesign-page .profile-scale__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
}

body.profile-redesign-page .profile-scale__label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 12px;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.profile-redesign-page .profile-scale__duration {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

body.profile-redesign-page .profile-profile-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

body.profile-redesign-page .profile-inline-link {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

body.profile-redesign-page .profile-inventory-preview {
  display: grid;
  gap: 8px;
}

body.profile-redesign-page .profile-preview-item {
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

body.profile-redesign-page .profile-preview-item img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
}

body.profile-redesign-page .profile-preview-item span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.profile-redesign-page .profile-muted-note {
  display: block;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.profile-redesign-page .profile-vpn-mini {
  display: grid;
  gap: 8px;
  color: var(--profile-soft);
  font-size: 13px;
}

body.profile-redesign-page .profile-vpn-mini__bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

body.profile-redesign-page .profile-vpn-mini__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f0f0f0;
}

body.profile-redesign-page .profile-section-head {
  padding: 0;
}

body.profile-redesign-page .profile-section-head h2 {
  font-size: 34px;
}

body.profile-redesign-page .profile-search {
  min-width: 310px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 15px;
  background: var(--profile-card);
  color: var(--profile-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.profile-redesign-page .profile-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body.profile-redesign-page .profile-list {
  display: grid;
  gap: 9px;
}

body.profile-redesign-page .profile-row-card {
  min-height: 76px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.16s ease, transform 0.16s ease;
}

body.profile-redesign-page .profile-row-card:hover {
  background: var(--profile-card-2);
  transform: translateY(-1px);
}

body.profile-redesign-page .profile-row-card__image {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.16);
}

body.profile-redesign-page .profile-row-card__main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 7px;
}

body.profile-redesign-page .profile-row-card__top,
body.profile-redesign-page .profile-row-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.profile-redesign-page .profile-row-card__top {
  justify-content: space-between;
}

body.profile-redesign-page .profile-row-card__top strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.profile-redesign-page .profile-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

body.profile-redesign-page .profile-price s {
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 700;
}

body.profile-redesign-page .profile-price strong {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

body.profile-redesign-page .profile-row-card__meta {
  flex-wrap: wrap;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 650;
}

body.profile-redesign-page .profile-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.profile-redesign-page .profile-inventory-card {
  padding: 10px;
  border-radius: 17px;
  display: grid;
  gap: 10px;
}

body.profile-redesign-page .profile-inventory-card__media {
  position: relative;
  aspect-ratio: 1.2 / 1;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}

body.profile-redesign-page .profile-inventory-card__media img {
  width: 48%;
  max-height: 66%;
  object-fit: contain;
}

body.profile-redesign-page .profile-inventory-card__media span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 25px;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
}

body.profile-redesign-page .profile-inventory-card__body {
  display: grid;
  gap: 3px;
}

body.profile-redesign-page .profile-inventory-card__body strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

body.profile-redesign-page .profile-inventory-card__body small {
  color: var(--profile-muted);
  font-size: 11px;
}

body.profile-redesign-page .profile-primary-action,
body.profile-redesign-page .profile-secondary-action {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: #090909;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

body.profile-redesign-page .profile-secondary-action {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

body.profile-redesign-page .profile-primary-action:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

body.profile-redesign-page .profile-vpn-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

body.profile-redesign-page .profile-vpn-summary__item {
  min-height: 78px;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 4px;
}

body.profile-redesign-page .profile-vpn-summary__item--wide {
  grid-column: 1 / -1;
}

body.profile-redesign-page .profile-vpn-summary__item strong {
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.035em;
}

body.profile-redesign-page .profile-vpn-summary__item span {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 750;
}

body.profile-redesign-page .profile-vpn-status {
  width: 8px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

body.profile-redesign-page .profile-vpn-status.is-online {
  background: var(--profile-good);
}

body.profile-redesign-page .profile-vpn-usage {
  width: min(320px, 100%);
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

body.profile-redesign-page .profile-vpn-usage span {
  display: block;
  height: 100%;
  background: #e8e8e8;
}

body.profile-redesign-page .profile-row-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.profile-redesign-page .profile-icon-action {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
}

body.profile-redesign-page .profile-icon-action:hover,
body.profile-redesign-page .profile-icon-action:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
}

body.profile-redesign-page .profile-icon-action img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-icon-action--danger img {
  filter: none;
}

body.profile-redesign-page .profile-empty-state,
body.profile-redesign-page .profile-loading {
  min-height: 160px;
  padding: 22px;
  color: var(--profile-soft);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

body.profile-redesign-page .profile-empty-state strong {
  color: #fff;
  font-size: 19px;
}

body.profile-redesign-page .profile-empty-state span {
  max-width: 460px;
  color: var(--profile-soft);
  font-size: 14px;
  line-height: 1.45;
}

body.profile-redesign-page .profile-empty-state--wide {
  grid-column: 1 / -1;
}

body.profile-redesign-page .profile-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 4200;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  display: grid;
  place-items: center;
}

body.profile-redesign-page .profile-qr-modal.hidden {
  display: none !important;
}

body.profile-redesign-page .profile-qr-modal__card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 24px;
  padding: 24px;
  background: #17191a;
  display: grid;
  gap: 14px;
}

body.profile-redesign-page .profile-qr-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

body.profile-redesign-page .profile-qr-modal__card h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.04em;
}

body.profile-redesign-page .profile-qr-modal__image {
  width: 260px;
  height: 260px;
  justify-self: center;
  border-radius: 18px;
  background: #fff;
}

body.profile-redesign-page .profile-qr-modal__link {
  margin: 0;
  max-height: 76px;
  overflow: auto;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Profile v3 sizing and cabinet composition */
body.profile-redesign-page .profile-side {
  width: 104px;
}

body.profile-redesign-page .profile-side:hover,
body.profile-redesign-page .profile-side:focus-within {
  width: 278px;
}

body.profile-redesign-page .profile-side__head {
  height: 126px;
}

body.profile-redesign-page .profile-side__brand {
  left: 16px;
  top: 40px;
  gap: 10px;
  font-size: 18px;
}

body.profile-redesign-page .profile-side__brand img {
  width: 36px;
  height: 36px;
}

body.profile-redesign-page .profile-side__chevron {
  top: 53px;
  right: 18px;
  font-size: 19px;
  font-weight: 700;
}

body.profile-redesign-page .profile-side__nav {
  padding-top: 28px;
}

body.profile-redesign-page .profile-nav {
  min-height: 48px;
  padding-left: 40px;
  gap: 18px;
  font-size: 16px;
}

body.profile-redesign-page .profile-nav__icon {
  width: 22px;
  height: 22px;
}

body.profile-redesign-page .profile-workspace {
  width: calc(100% - 104px);
  margin-left: 104px;
  box-sizing: border-box;
  padding: 56px 36px 72px 46px;
}

body.profile-redesign-page .profile-subtle-subscription {
  min-width: 0;
  width: min(460px, 38vw);
  max-width: 100%;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.045));
  justify-self: end;
  display: block;
  text-align: right;
}

body.profile-redesign-page .profile-subtle-subscription__content {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: end;
}

body.profile-redesign-page .profile-subtle-subscription strong {
  font-size: 20px;
  font-weight: 780;
  white-space: normal;
  line-height: 1.08;
}

body.profile-redesign-page .profile-subtle-subscription small {
  color: var(--profile-muted);
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

body.profile-redesign-page .profile-profile-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, auto);
  align-items: center;
  gap: 28px;
}

body.profile-redesign-page .profile-profile-card__identity {
  gap: 18px;
  align-items: center;
}

body.profile-redesign-page .profile-profile-card__name h2 {
  font-size: 30px;
}

body.profile-redesign-page .profile-profile-card__name p {
  max-width: 440px;
}

body.profile-redesign-page .profile-panel--inventory-home {
  padding-bottom: 18px;
}

body.profile-redesign-page .profile-inventory-grid--home {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  body.profile-redesign-page .profile-side,
  body.profile-redesign-page .profile-side:hover,
  body.profile-redesign-page .profile-side:focus-within {
    width: 92px;
  }

  body.profile-redesign-page .profile-side__brand img {
    width: 56px;
    height: 56px;
  }

  body.profile-redesign-page .profile-side__brand span,
  body.profile-redesign-page .profile-side__chevron,
  body.profile-redesign-page .profile-nav span {
    display: none;
  }

  body.profile-redesign-page .profile-nav {
    padding-left: 33px;
  }

  body.profile-redesign-page .profile-workspace {
    width: calc(100% - 92px);
    margin-left: 92px;
    padding: 38px 24px 60px;
  }

  body.profile-redesign-page .profile-inventory-grid,
  body.profile-redesign-page .profile-vpn-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.profile-redesign-page .profile-side {
    position: sticky;
    inset: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 86px;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    overflow-x: auto;
  }

  body.profile-redesign-page .profile-side:hover,
  body.profile-redesign-page .profile-side:focus-within {
    width: 100%;
  }

  body.profile-redesign-page .profile-side__head {
    width: 82px;
    min-width: 82px;
    height: 86px;
    border-radius: 0;
    border: 0;
    background: transparent;
  }

  body.profile-redesign-page .profile-side__brand {
    left: 12px;
    top: 15px;
  }

  body.profile-redesign-page .profile-side__brand img {
    width: 54px;
    height: 54px;
  }

  body.profile-redesign-page .profile-side__nav {
    display: flex;
    gap: 2px;
    padding: 0 12px 0 0;
  }

  body.profile-redesign-page .profile-nav {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
  }

  body.profile-redesign-page .profile-nav__icon {
    width: 22px;
    height: 22px;
  }

  body.profile-redesign-page .profile-workspace {
    width: 100%;
    margin-left: 0;
    padding: 24px 14px 48px;
  }

  body.profile-redesign-page .profile-top,
  body.profile-redesign-page .profile-profile-card,
  body.profile-redesign-page .profile-panel__head,
  body.profile-redesign-page .profile-section-head,
  body.profile-redesign-page .profile-row-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  body.profile-redesign-page .profile-top h1 {
    font-size: 32px;
  }

  body.profile-redesign-page .profile-profile-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  body.profile-redesign-page .profile-subtle-subscription {
    min-width: 0;
    gap: 8px;
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }

  body.profile-redesign-page .profile-subtle-subscription__content {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  body.profile-redesign-page .profile-subtle-subscription small {
    white-space: normal;
    text-align: left;
  }

  body.profile-redesign-page .profile-profile-split,
  body.profile-redesign-page .profile-inventory-grid,
  body.profile-redesign-page .profile-vpn-summary {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .profile-panel__hint {
    max-width: none;
    text-align: left;
  }

  body.profile-redesign-page .profile-search {
    width: 100%;
    min-width: 0;
  }

  body.profile-redesign-page .profile-row-card {
    align-items: flex-start;
  }

  body.profile-redesign-page .profile-row-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Profile redesign v5 refinements */
body.profile-redesign-page .profile-side {
  width: 104px;
}

body.profile-redesign-page .profile-side:hover,
body.profile-redesign-page .profile-side:focus-within {
  width: 280px;
}

body.profile-redesign-page .profile-side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 34px 18px 0;
}

body.profile-redesign-page .profile-side__brand {
  position: static;
  min-width: 0;
  gap: 12px;
}

body.profile-redesign-page .profile-side__brand img {
  width: 34px;
  height: 34px;
}

body.profile-redesign-page .profile-side__brand span {
  max-width: 0;
  overflow: hidden;
  font-size: 17px;
}

body.profile-redesign-page .profile-side:hover .profile-side__brand span,
body.profile-redesign-page .profile-side:focus-within .profile-side__brand span {
  max-width: 160px;
}

body.profile-redesign-page .profile-side__chevron {
  position: static;
  margin-left: auto;
  font-size: 22px;
}

body.profile-redesign-page .profile-nav {
  min-height: 50px;
  padding-left: 40px;
  gap: 16px;
}

body.profile-redesign-page .profile-nav__icon {
  width: 21px;
  height: 21px;
}

body.profile-redesign-page .profile-workspace {
  width: auto;
  min-width: 0;
  margin: 0 0 0 104px;
  padding: 48px 30px 72px 36px;
}

body.profile-redesign-page .profile-tab-panel.is-active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 16px;
}

body.profile-redesign-page .profile-profile-card,
body.profile-redesign-page .profile-panel,
body.profile-redesign-page .profile-section-head,
body.profile-redesign-page .profile-vpn-summary,
body.profile-redesign-page .profile-list {
  width: 100%;
  min-width: 0;
}

body.profile-redesign-page .profile-profile-card {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  padding: 22px 24px;
  gap: 20px;
}

body.profile-redesign-page .profile-profile-card__identity {
  width: 100%;
  min-width: 0;
}

body.profile-redesign-page .profile-profile-card__name h2 {
  margin-top: 6px;
  font-size: 31px;
}

body.profile-redesign-page .profile-profile-card__name p {
  max-width: none;
}

body.profile-redesign-page .profile-subtle-subscription {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-self: stretch;
  text-align: left;
}

body.profile-redesign-page .profile-subtle-subscription__content {
  justify-items: start;
  gap: 6px;
}

body.profile-redesign-page .profile-subtle-subscription strong {
  font-size: 24px;
}

body.profile-redesign-page .profile-subtle-subscription small {
  white-space: normal;
  text-align: left;
}

body.profile-redesign-page .profile-panel,
body.profile-redesign-page .profile-profile-card {
  border-radius: 22px;
}

body.profile-redesign-page .profile-panel--timeline {
  padding: 22px 24px 24px;
}

body.profile-redesign-page .profile-panel__head--timeline {
  align-items: flex-end;
  margin-bottom: 18px;
}

body.profile-redesign-page .profile-panel__title-stack {
  display: grid;
  gap: 8px;
}

body.profile-redesign-page .profile-panel h3,
body.profile-redesign-page .profile-section-head h2 {
  margin: 0;
}

body.profile-redesign-page .profile-panel__subline {
  margin: 0;
  color: var(--profile-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

body.profile-redesign-page .profile-panel__hint {
  max-width: none;
  font-size: 13px;
  white-space: nowrap;
}

body.profile-redesign-page .profile-scale-shell {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.035);
}

body.profile-redesign-page .profile-scale {
  min-height: 0;
  align-items: stretch;
  gap: 10px;
  padding: 0;
}

body.profile-redesign-page .profile-scale__item {
  min-width: 126px;
  gap: 8px;
}

body.profile-redesign-page .profile-scale__segment {
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.profile-redesign-page .profile-scale__segment:hover,
body.profile-redesign-page .profile-scale__segment:focus-visible,
body.profile-redesign-page .profile-scale__segment.is-current {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.11);
}

body.profile-redesign-page .profile-scale__label {
  padding: 0 14px;
  font-size: 13px;
  line-height: 42px;
}

body.profile-redesign-page .profile-scale__duration {
  font-size: 12px;
}

body.profile-redesign-page .profile-empty-line {
  color: var(--profile-soft);
  font-size: 14px;
  line-height: 1.5;
}

body.profile-redesign-page .profile-section-head {
  align-items: center;
}

body.profile-redesign-page .profile-search {
  width: min(360px, 100%);
}

body.profile-redesign-page .profile-panel--inventory-home {
  padding: 20px;
}

body.profile-redesign-page .profile-inventory-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(138px, 148px));
  justify-content: flex-start;
  gap: 12px;
}

body.profile-redesign-page .profile-inventory-card {
  padding: 9px;
  gap: 8px;
}

body.profile-redesign-page .profile-inventory-card__media {
  aspect-ratio: 1.04 / 1;
  border-radius: 12px;
}

body.profile-redesign-page .profile-inventory-card__body {
  min-height: 34px;
}

body.profile-redesign-page .profile-inventory-card__body strong {
  font-size: 13px;
}

body.profile-redesign-page .profile-secondary-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

body.profile-redesign-page .profile-vpn-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.profile-redesign-page .profile-vpn-summary__item {
  min-height: 82px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
}

body.profile-redesign-page .profile-vpn-summary__item strong {
  font-size: 22px;
}

body.profile-redesign-page .profile-vpn-summary__item span {
  line-height: 1.45;
}

body.profile-redesign-page .profile-row-card--vpn {
  padding: 14px 16px;
}

body.profile-redesign-page .profile-row-card__state {
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

body.profile-redesign-page .profile-vpn-status {
  width: 10px;
  height: 48px;
}

body.profile-redesign-page .profile-vpn-usage {
  width: min(380px, 100%);
  height: 6px;
}

body.profile-redesign-page .profile-row-card__actions {
  gap: 8px;
}

body.profile-redesign-page .profile-icon-action {
  background: rgba(255, 255, 255, 0.06);
}

body.profile-redesign-page .profile-icon-action--danger img {
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-icon-action--danger:hover,
body.profile-redesign-page .profile-icon-action--danger:focus-visible {
  background: rgba(255, 82, 82, 0.14);
}

body.profile-redesign-page .profile-icon-action--danger:hover img,
body.profile-redesign-page .profile-icon-action--danger:focus-visible img {
  filter: brightness(0) saturate(100%) invert(33%) sepia(97%) saturate(2153%) hue-rotate(342deg) brightness(95%) contrast(103%);
}

body.profile-redesign-page .profile-profile-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

body.profile-redesign-page .profile-profile-card[data-subscription-tone="silver"] .profile-subtle-subscription {
  background: linear-gradient(180deg, rgba(221, 234, 244, 0.16), rgba(129, 155, 180, 0.08));
}

body.profile-redesign-page .profile-profile-card[data-subscription-tone="gold"] .profile-subtle-subscription {
  background: linear-gradient(180deg, rgba(255, 232, 190, 0.18), rgba(184, 150, 88, 0.08));
}

body.profile-redesign-page .profile-profile-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

body.profile-redesign-page .profile-scale-shell {
  padding: 14px;
}

body.profile-redesign-page .profile-scale {
  display: block;
}

body.profile-redesign-page .profile-subscription-roadmap {
  display: grid;
  gap: 12px;
}

body.profile-redesign-page .profile-subscription-stage {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.profile-redesign-page .profile-subscription-stage--current {
  border-color: rgba(143, 203, 255, 0.22);
  background: linear-gradient(180deg, rgba(143, 203, 255, 0.12), rgba(255, 255, 255, 0.03));
}

body.profile-redesign-page .profile-subscription-stage__top,
body.profile-redesign-page .profile-subscription-stage__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.profile-redesign-page .profile-subscription-stage__top strong {
  color: #fff;
  font-size: 16px;
}

body.profile-redesign-page .profile-subscription-stage__top span,
body.profile-redesign-page .profile-subscription-stage__meta,
body.profile-redesign-page .profile-subscription-stage__foot {
  color: var(--profile-soft);
  font-size: 12px;
  font-weight: 650;
}

body.profile-redesign-page .profile-subscription-stage__progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

body.profile-redesign-page .profile-subscription-stage__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(143, 203, 255, 0.92));
}

body.profile-redesign-page .profile-plan-card--v2 {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(143, 203, 255, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.profile-redesign-page .profile-plan-card--v2 .profile-plan-card__head {
  margin-bottom: 14px;
  align-items: center;
}

body.profile-redesign-page .profile-plan-card--v2 .profile-plan-card__eyebrow {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.profile-redesign-page .profile-plan-card--v2 .profile-plan-card__title {
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

body.profile-redesign-page .profile-plan-card--v2 .profile-plan-card__summary {
  min-width: 220px;
  text-align: left;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body.profile-redesign-page .profile-plan-card--v2 .profile-timeline-bar {
  min-height: 12px;
  margin-bottom: 12px;
}

body.profile-redesign-page .profile-plan-card--v2 .profile-timeline-bar__segment {
  min-height: 12px;
  opacity: 0.92;
}

body.profile-redesign-page .profile-plan-card--v2 .profile-timeline-list {
  gap: 10px;
}

body.profile-redesign-page .profile-plan-card--v2 .profile-timeline-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

body.profile-redesign-page .profile-plan-card--v2 .profile-timeline-item--current {
  border-color: rgba(143, 203, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(143, 203, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

body.profile-redesign-page .profile-plan-card--v2 .profile-timeline-item__status {
  color: var(--profile-soft);
}

body.profile-redesign-page .profile-plan-card--v2 .profile-timeline-item__end {
  white-space: nowrap;
}

body.profile-redesign-page .profile-subscription-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

body.profile-redesign-page .profile-subscription-track__item {
  min-width: 92px;
  display: grid;
  gap: 10px;
  align-items: center;
}

body.profile-redesign-page .profile-subscription-track__label {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

body.profile-redesign-page .profile-subscription-track__item:hover .profile-subscription-track__label,
body.profile-redesign-page .profile-subscription-track__item:focus-within .profile-subscription-track__label {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}

body.profile-redesign-page .profile-subscription-track__segment {
  position: relative;
  width: 100%;
  height: 14px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.profile-redesign-page .profile-subscription-track__segment[data-tier="issledovatel"] {
  background: linear-gradient(90deg, rgba(109, 128, 150, 0.44), rgba(144, 164, 188, 0.76));
}

body.profile-redesign-page .profile-subscription-track__segment[data-tier="puteshestvennik"] {
  background: linear-gradient(90deg, rgba(104, 133, 188, 0.48), rgba(147, 180, 230, 0.82));
}

body.profile-redesign-page .profile-subscription-track__segment[data-tier="traktorist"] {
  background: linear-gradient(90deg, rgba(110, 140, 214, 0.52), rgba(186, 214, 255, 0.88));
}

body.profile-redesign-page .profile-subscription-track__progress {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.45));
}

body.profile-redesign-page .profile-subscription-track__item.is-current .profile-subscription-track__segment {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(143, 203, 255, 0.16),
    0 10px 24px rgba(143, 203, 255, 0.16);
}

body.profile-redesign-page .profile-subscription-track__duration {
  color: var(--profile-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

body.profile-redesign-page .profile-row-card__top .presence {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  min-height: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(2px);
}

body.profile-redesign-page .profile-row-card__top .presence .presence-dot {
  flex: 0 0 auto;
}

body.profile-redesign-page .profile-row-card--vpn .profile-row-card__top {
  justify-content: flex-start;
  min-height: 26px;
}

body.profile-redesign-page .profile-row-card--vpn {
  position: relative;
}

body.profile-redesign-page .profile-row-card--vpn .profile-row-card__main {
  padding-right: 138px;
}

body.profile-redesign-page .profile-row-card--vpn .profile-row-card__top .presence {
  position: absolute;
  top: 50%;
  right: 146px;
  min-height: 24px;
  transform: translateY(-50%);
}

body.profile-redesign-page .profile-inventory-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(150px, 164px));
  gap: 14px;
}

body.profile-redesign-page .profile-inventory-card {
  position: relative;
  padding: 10px;
  gap: 10px;
  border-radius: 20px;
  overflow: hidden;
}

body.profile-redesign-page .profile-inventory-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
}

body.profile-redesign-page .profile-inventory-card__aura {
  position: absolute;
  inset: 10% 10% auto;
  height: 56%;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.14);
}

body.profile-redesign-page .profile-inventory-card--mid .profile-inventory-card__aura {
  background: rgba(143, 203, 255, 0.2);
}

body.profile-redesign-page .profile-inventory-card--max .profile-inventory-card__aura {
  background: rgba(255, 222, 168, 0.24);
}

body.profile-redesign-page .profile-stack-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 32px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.74);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

body.profile-redesign-page .profile-inventory-card__body {
  gap: 4px;
  min-height: 42px;
}

body.profile-redesign-page .profile-inventory-card__body strong {
  font-size: 14px;
}

body.profile-redesign-page .profile-inventory-quantity {
  display: grid;
  grid-template-columns: 1fr 54px;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 750;
}

body.profile-redesign-page .profile-inventory-quantity input {
  width: 54px;
  height: 30px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  outline: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
  font: inherit;
  font-size: 12px;
}

body.profile-redesign-page .profile-inventory-quantity input:focus {
  border-color: rgba(143, 203, 255, 0.58);
}

body.profile-redesign-page .profile-secondary-action:disabled {
  cursor: wait;
  opacity: 0.6;
}

body.profile-redesign-page .profile-vpn-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.profile-redesign-page .profile-vpn-node span {
  font-size: 18px;
  line-height: 1;
}

body.profile-redesign-page .profile-vpn-node__ping {
  color: rgba(214, 239, 255, 0.9);
}

body.profile-redesign-page .profile-settings-panel {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

body.profile-redesign-page .profile-downloads-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

body.profile-redesign-page .profile-downloads-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

body.profile-redesign-page .profile-downloads-hero img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-downloads-hero h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

body.profile-redesign-page .profile-downloads-hero p {
  margin: 7px 0 0;
  color: var(--profile-soft);
  font-size: 14px;
  line-height: 1.45;
}

body.profile-redesign-page .profile-download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.profile-redesign-page .profile-download-button {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

body.profile-redesign-page .profile-download-button:hover,
body.profile-redesign-page .profile-download-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.085);
}

body.profile-redesign-page .profile-download-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

body.profile-redesign-page .profile-download-button.is-disabled:hover,
body.profile-redesign-page .profile-download-button.is-disabled:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.profile-redesign-page .profile-download-button__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

body.profile-redesign-page .profile-download-button__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-download-button__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.profile-redesign-page .profile-download-button__copy strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
}

body.profile-redesign-page .profile-download-button__copy small {
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 1.35;
}

body.profile-redesign-page .profile-violations-list {
  display: grid;
  gap: 12px;
}

body.profile-redesign-page .profile-violation-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--profile-card);
}

body.profile-redesign-page .profile-violation-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

body.profile-redesign-page .profile-violation-card__head > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.profile-redesign-page .profile-violation-card__head strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

body.profile-redesign-page .profile-violation-card__eyebrow,
body.profile-redesign-page .profile-violation-field span {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.profile-redesign-page .profile-violation-status {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
}

body.profile-redesign-page .profile-violation-status--active {
  background: rgba(255, 118, 118, 0.14);
  color: #ff9a9a;
}

body.profile-redesign-page .profile-violation-status--expired {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
}

body.profile-redesign-page .profile-violation-status--removed {
  background: rgba(165, 232, 188, 0.14);
  color: #a8efbd;
}

body.profile-redesign-page .profile-violation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.9fr);
  gap: 12px;
}

body.profile-redesign-page .profile-violation-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

body.profile-redesign-page .profile-violation-field--wide {
  grid-row: span 2;
}

body.profile-redesign-page .profile-violation-field strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.profile-redesign-page .profile-violation-actions {
  display: flex;
  justify-content: flex-end;
}

body.profile-redesign-page .profile-violation-appeal {
  min-height: 36px;
  padding: 0 14px;
}

body.profile-redesign-page .profile-violations-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px 18px;
  border-radius: 20px;
  background: var(--profile-card);
  text-align: center;
}

body.profile-redesign-page .profile-violations-empty img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.74;
}

body.profile-redesign-page .profile-violations-empty strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

body.profile-redesign-page .profile-violations-empty span {
  color: var(--profile-soft);
  font-size: 14px;
}

body.profile-redesign-page .profile-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

body.profile-redesign-page .profile-settings-row > div:first-child {
  min-width: 0;
}

body.profile-redesign-page .profile-settings-row > div {
  min-width: 0;
}

body.profile-redesign-page .profile-settings-row--with-icon {
  justify-content: flex-start;
  text-align: left;
}

body.profile-redesign-page .profile-settings-row--with-icon > div:not(.profile-settings-actions) {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

body.profile-redesign-page .profile-settings-row--with-icon .profile-settings-actions,
body.profile-redesign-page .profile-settings-row--with-icon > button,
body.profile-redesign-page .profile-settings-row--with-icon > span {
  margin-left: auto;
  flex: 0 0 auto;
}

body.profile-redesign-page .profile-settings-row--with-icon h3,
body.profile-redesign-page .profile-settings-row--with-icon p {
  text-align: left;
}

body.profile-redesign-page .profile-settings-row__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

body.profile-redesign-page .profile-settings-row__icon--white {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

body.profile-redesign-page .profile-settings-row__icon--avatar {
  border-radius: 50%;
  object-fit: cover;
  filter: none;
  background: rgba(255, 255, 255, 0.08);
}

body.profile-redesign-page .profile-icon-action {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

body.profile-redesign-page .profile-icon-action img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-settings-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

body.profile-redesign-page .profile-settings-form.hidden {
  display: none;
}

body.profile-redesign-page .profile-field {
  display: grid;
  gap: 8px;
  color: var(--profile-soft);
  font-size: 13px;
  font-weight: 700;
}

body.profile-redesign-page .profile-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 14px;
  font: inherit;
  outline: none;
}

body.profile-redesign-page .profile-field input:focus {
  border-color: rgba(143, 203, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(143, 203, 255, 0.1);
}

body.profile-redesign-page .profile-settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

body.profile-redesign-page .profile-avatar-settings-row {
  align-items: center;
}

body.profile-redesign-page .profile-avatar-settings-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

body.profile-redesign-page .profile-settings-avatar-preview {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

body.profile-redesign-page .profile-avatar-refreshing {
  opacity: 0.35;
  transition: opacity 0.18s ease;
}

body.profile-redesign-page .profile-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body.profile-redesign-page .profile-profile-card__avatar {
  border-radius: 50%;
}

body.profile-redesign-page .profile-avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 4600;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.profile-redesign-page .profile-avatar-modal.hidden {
  display: none !important;
}

body.profile-redesign-page .profile-avatar-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.profile-redesign-page .profile-avatar-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

body.profile-redesign-page .profile-avatar-modal__dialog {
  position: relative;
  width: min(456px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  background: #151617;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.profile-redesign-page .profile-avatar-modal.is-open .profile-avatar-modal__dialog {
  transform: translateY(0) scale(1);
}

body.profile-redesign-page .profile-avatar-modal__head,
body.profile-redesign-page .profile-avatar-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.profile-redesign-page .profile-avatar-modal__head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

body.profile-redesign-page .profile-avatar-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

body.profile-redesign-page .profile-avatar-modal__close:hover,
body.profile-redesign-page .profile-avatar-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

body.profile-redesign-page .profile-avatar-cropper {
  display: grid;
  gap: 14px;
  padding: 18px 0 16px;
}

body.profile-redesign-page .profile-avatar-canvas {
  width: min(360px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 20px;
  background: #08090a;
  cursor: grab;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.profile-redesign-page .profile-avatar-canvas.is-dragging {
  cursor: grabbing;
}

body.profile-redesign-page .profile-avatar-zoom {
  width: min(360px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 800;
}

body.profile-redesign-page .profile-avatar-zoom input {
  width: 100%;
  accent-color: #f4f4f4;
}

body.profile-redesign-page .profile-avatar-modal__actions {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  body.profile-redesign-page .profile-avatar-settings-copy {
    align-items: flex-start;
  }

  body.profile-redesign-page .profile-avatar-modal__dialog {
    padding: 16px;
  }

  body.profile-redesign-page .profile-avatar-modal__actions,
  body.profile-redesign-page .profile-avatar-modal__actions button {
    width: 100%;
  }

  body.profile-redesign-page .profile-downloads-hero {
    align-items: flex-start;
  }

  body.profile-redesign-page .profile-download-actions {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .profile-violation-card__head,
  body.profile-redesign-page .profile-violation-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  body.profile-redesign-page .profile-violation-grid {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .profile-violation-field--wide {
    grid-row: auto;
  }
}

@media (max-width: 1120px) {
  body.profile-redesign-page .profile-side,
  body.profile-redesign-page .profile-side:hover,
  body.profile-redesign-page .profile-side:focus-within {
    width: 92px;
  }

  body.profile-redesign-page .profile-workspace {
    margin-left: 92px;
    padding: 36px 22px 60px;
  }

  body.profile-redesign-page .profile-vpn-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.profile-redesign-page .profile-side {
    width: 100%;
  }

  body.profile-redesign-page .profile-side__head {
    padding: 16px 12px 0;
  }

  body.profile-redesign-page .profile-workspace {
    margin-left: 0;
    padding: 24px 14px 48px;
  }

  body.profile-redesign-page .profile-profile-card {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .profile-subtle-subscription {
    text-align: left;
  }

  body.profile-redesign-page .profile-panel__head--timeline,
  body.profile-redesign-page .profile-settings-row,
  body.profile-redesign-page .profile-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.profile-redesign-page .profile-panel__hint {
    white-space: normal;
  }

  body.profile-redesign-page .profile-search {
    width: 100%;
  }

  body.profile-redesign-page .profile-inventory-grid--home,
  body.profile-redesign-page .profile-vpn-summary {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .profile-row-card--vpn .profile-row-card__main {
    padding-right: 0;
  }

  body.profile-redesign-page .profile-row-card--vpn .profile-row-card__top .presence {
    position: static;
    transform: none;
  }

  body.profile-redesign-page .profile-plan-card--v2 .profile-plan-card__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.profile-redesign-page .profile-plan-card--v2 .profile-plan-card__summary {
    min-width: 0;
    width: 100%;
  }
}

.profile-section-note,
.admin-ticket-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

.ticket-stage {
  min-height: 540px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.ticket-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 16px 16px 15px;
  border: 0;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(15, 15, 15, 0.99)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.18);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ticket-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.ticket-card.has-unread {
  box-shadow:
    inset 0 0 0 1px rgba(124, 207, 255, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.ticket-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 22px 22px 0 0;
}

.ticket-card__head,
.ticket-card__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ticket-card__topic {
  min-width: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.ticket-card__preview {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.ticket-card__foot {
  margin-top: auto;
  align-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.ticket-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ticket-status--open {
  background: rgba(240, 207, 114, 0.2);
}

.ticket-status--work {
  background: rgba(143, 211, 106, 0.14);
}

.ticket-status--closed {
  background: rgba(255, 255, 255, 0.1);
}

.ticket-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff6f6f;
  color: #160909;
  font-size: 11px;
  font-weight: 900;
}

.ticket-panel {
  display: grid;
  gap: 0;
  min-height: 560px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(24, 24, 24, 0.99), rgba(10, 10, 10, 1)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.22);
}

.ticket-panel--chat {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.ticket-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 14px;
}

.ticket-panel__head h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.ticket-panel__head .ticket-status {
  margin-left: auto;
}

.ticket-panel__eyebrow {
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-back {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ticket-panel__meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px 16px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.ticket-topic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #091018;
  font-size: 12px;
  font-weight: 900;
}

.ticket-panel__body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.ticket-panel__body--form {
  align-content: start;
}

.ticket-panel__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

.ticket-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.ticket-message {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: 78%;
}

.ticket-message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ticket-message--admin {
  align-self: flex-start;
}

.ticket-message__avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.ticket-message__bubble {
  display: grid;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #f7fbff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.ticket-message--user .ticket-message__bubble {
  border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, rgba(124, 207, 255, 0.92), rgba(192, 233, 255, 0.92));
  color: #061016;
}

.ticket-message--admin .ticket-message__bubble {
  border-bottom-left-radius: 7px;
}

.ticket-message__author {
  font-size: 12px;
  font-weight: 850;
  opacity: 0.78;
}

.ticket-message__text {
  font-size: 14px;
  line-height: 1.45;
}

.ticket-message time {
  justify-self: end;
  color: currentColor;
  font-size: 11px;
  opacity: 0.56;
}

.ticket-message__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-attachment {
  display: block;
  width: 118px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.ticket-attachment img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ticket-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.ticket-composer__meta {
  grid-column: 2 / -1;
}

.ticket-field {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.ticket-input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 15px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ticket-input--textarea {
  min-height: 86px;
  padding-top: 11px;
  resize: vertical;
}

.ticket-composer__input {
  min-height: 44px;
  max-height: 130px;
}

.ticket-file {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ticket-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ticket-file--compact {
  min-width: 76px;
}

.ticket-file--wide {
  justify-content: flex-start;
}

.ticket-file-meta {
  min-height: 16px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.ticket-create-actions,
.admin-ticket-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.ticket-empty,
.ticket-chat-empty,
.ticket-closed-note {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.ticket-empty--large {
  min-height: 360px;
}

.ticket-empty strong,
.ticket-chat-empty strong {
  color: #fff;
}

.ticket-closed-note {
  min-height: auto;
  margin: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-ticket-panel {
  display: grid;
  gap: 16px;
}

.admin-ticket-panel.hidden {
  display: none;
}

.admin-ticket-head,
.admin-ticket-filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-ticket-filters {
  align-items: center;
  justify-content: flex-start;
}

.admin-ticket-filters .input {
  width: auto;
  min-width: 190px;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-ticket-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px 16px;
}

.admin-ticket-actions {
  justify-content: flex-start;
  padding: 12px 18px 0;
}

.admin-ticket-panel .btn {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-ticket-panel .btn--primary {
  background: linear-gradient(135deg, rgba(123, 205, 255, 0.96), rgba(205, 238, 255, 0.94));
  color: #071018;
}

.ticket-category-editor {
  display: grid;
  gap: 12px;
}

.ticket-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.ticket-setting-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(31, 31, 31, 0.98), rgba(15, 15, 15, 0.99)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.ticket-setting-card__swatch {
  display: block;
  height: 5px;
  border-radius: 999px;
}

.ticket-setting-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-color-input {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.ticket-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.ticket-toggle input {
  accent-color: #f0cf72;
}

.ticket-icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.ticket-icon-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.ticket-icon-btn--danger {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .ticket-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ticket-panel__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ticket-panel__head .ticket-status {
    margin-left: 0;
  }

  .ticket-composer {
    grid-template-columns: 1fr;
  }

  .ticket-composer__meta {
    grid-column: auto;
  }

  .ticket-message {
    max-width: 94%;
  }

  .admin-ticket-filters .input {
    width: 100%;
  }

  .ticket-panel__foot,
  .admin-ticket-toolbar {
    justify-content: stretch;
  }

  .ticket-panel__foot > *,
  .admin-ticket-toolbar > * {
    width: 100%;
  }
}

/* Minecraft account */
body.profile-redesign-page .minecraft-profile {
  display: grid;
  gap: 18px;
}

body.profile-redesign-page .minecraft-loading-card,
body.profile-redesign-page .minecraft-link-card,
body.profile-redesign-page .minecraft-identity-card,
body.profile-redesign-page .minecraft-panel,
body.profile-redesign-page .minecraft-stat-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(91, 181, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.028));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.profile-redesign-page .minecraft-loading-card {
  min-height: 240px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
}

body.profile-redesign-page .minecraft-loading-card__pulse {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #8fcbff;
  border-radius: 50%;
  animation: minecraft-spin 0.8s linear infinite;
}

@keyframes minecraft-spin {
  to { transform: rotate(360deg); }
}

body.profile-redesign-page .minecraft-link-card {
  min-height: 430px;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(320px, 1.3fr);
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
}

body.profile-redesign-page .minecraft-link-card__visual {
  aspect-ratio: 1;
  max-width: 290px;
  width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background:
    radial-gradient(circle, rgba(143, 203, 255, 0.2), transparent 63%),
    rgba(255, 255, 255, 0.035);
}

body.profile-redesign-page .minecraft-link-card__visual img {
  width: 52%;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.32));
}

body.profile-redesign-page .minecraft-link-card__copy {
  max-width: 620px;
}

body.profile-redesign-page .minecraft-kicker {
  display: block;
  color: #8fcbff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.profile-redesign-page .minecraft-link-card h2,
body.profile-redesign-page .minecraft-identity-card h2,
body.profile-redesign-page .minecraft-panel h3 {
  margin: 0;
  color: #fff;
}

body.profile-redesign-page .minecraft-link-card h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.045em;
}

body.profile-redesign-page .minecraft-link-card__copy > p {
  max-width: 590px;
  margin: 16px 0 24px;
  color: var(--profile-soft);
  font-size: 15px;
  line-height: 1.65;
}

body.profile-redesign-page .minecraft-link-card code {
  padding: 3px 7px;
  border-radius: 7px;
  color: #fff;
  background: rgba(143, 203, 255, 0.13);
}

body.profile-redesign-page .minecraft-link-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

body.profile-redesign-page .minecraft-link-form label {
  flex: 1;
  display: grid;
  gap: 8px;
  color: var(--profile-soft);
  font-size: 12px;
  font-weight: 750;
}

body.profile-redesign-page .minecraft-link-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.profile-redesign-page .minecraft-link-form input:focus {
  border-color: rgba(143, 203, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(143, 203, 255, 0.1);
}

body.profile-redesign-page .minecraft-link-card__note {
  display: block;
  margin-top: 14px;
  color: var(--profile-muted);
  line-height: 1.45;
}

body.profile-redesign-page .minecraft-identity-card {
  padding: 22px 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

body.profile-redesign-page .minecraft-identity-card__player {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

body.profile-redesign-page .minecraft-player-head {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 20px;
  image-rendering: pixelated;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

body.profile-redesign-page .minecraft-player-head.is-fallback {
  padding: 17px;
  image-rendering: auto;
}

body.profile-redesign-page .minecraft-player-title {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.profile-redesign-page .minecraft-player-title h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
}

body.profile-redesign-page .minecraft-identity-card__player p {
  margin: 7px 0 0;
  color: var(--profile-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

body.profile-redesign-page .minecraft-online-pill {
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 800;
}

body.profile-redesign-page .minecraft-online-pill.is-online {
  color: #baffd0;
  background: rgba(72, 218, 122, 0.14);
}

body.profile-redesign-page .minecraft-identity-card__actions {
  display: flex;
  gap: 9px;
}

body.profile-redesign-page .minecraft-unlink-action {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: #ffb4b4;
  background: rgba(255, 82, 82, 0.1);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

body.profile-redesign-page .minecraft-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.profile-redesign-page .minecraft-stat-grid article {
  min-height: 125px;
  padding: 18px;
  border-radius: 20px;
  display: grid;
  align-content: center;
  gap: 7px;
}

body.profile-redesign-page .minecraft-stat-grid span,
body.profile-redesign-page .minecraft-stat-grid small {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 700;
}

body.profile-redesign-page .minecraft-stat-grid strong {
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

body.profile-redesign-page .minecraft-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
}

body.profile-redesign-page .minecraft-panel {
  padding: 21px;
  border-radius: 22px;
}

body.profile-redesign-page .minecraft-panel__head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.profile-redesign-page .minecraft-panel__head h3 {
  margin-top: 6px;
  font-size: 20px;
}

body.profile-redesign-page .minecraft-panel__head > span {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 700;
}

body.profile-redesign-page .minecraft-vitals {
  display: grid;
  gap: 14px;
}

body.profile-redesign-page .minecraft-vitals > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  color: var(--profile-soft);
  font-size: 12px;
  font-weight: 700;
}

body.profile-redesign-page .minecraft-vitals strong {
  color: #fff;
}

body.profile-redesign-page .minecraft-vitals i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

body.profile-redesign-page .minecraft-vitals b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66b7ff, #a8dcff);
}

body.profile-redesign-page .minecraft-location {
  margin-top: 18px;
  padding: 14px 15px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--profile-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

body.profile-redesign-page .minecraft-location strong {
  color: #fff;
}

body.profile-redesign-page .minecraft-session-list {
  display: grid;
  gap: 9px;
}

body.profile-redesign-page .minecraft-session {
  min-height: 54px;
  padding: 9px 11px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.035);
}

body.profile-redesign-page .minecraft-session__status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

body.profile-redesign-page .minecraft-session__status.is-online {
  background: #72ec9d;
  box-shadow: 0 0 0 4px rgba(114, 236, 157, 0.1);
}

body.profile-redesign-page .minecraft-session div {
  display: grid;
  gap: 3px;
}

body.profile-redesign-page .minecraft-session strong {
  color: #fff;
  font-size: 13px;
}

body.profile-redesign-page .minecraft-session small,
body.profile-redesign-page .minecraft-session > span:last-child {
  color: var(--profile-muted);
  font-size: 11px;
}

body.profile-redesign-page .minecraft-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 9px;
}

body.profile-redesign-page .minecraft-item {
  min-height: 92px;
  padding: 13px;
  border-radius: 15px;
  display: grid;
  align-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.035);
}

body.profile-redesign-page .minecraft-item span {
  color: var(--profile-soft);
  font-size: 11px;
  font-weight: 750;
  text-transform: capitalize;
}

body.profile-redesign-page .minecraft-item strong {
  color: #fff;
  font-size: 19px;
}

body.profile-redesign-page .minecraft-item small,
body.profile-redesign-page .minecraft-empty {
  color: var(--profile-muted);
  font-size: 11px;
}

body.profile-redesign-page .minecraft-empty {
  margin: 0;
  padding: 18px 4px;
}

body.profile-redesign-page .minecraft-empty--inventory {
  grid-column: 1 / -1;
  min-height: 84px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 980px) {
  body.profile-redesign-page .minecraft-link-card {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .minecraft-link-card__visual {
    max-width: 190px;
  }

  body.profile-redesign-page .minecraft-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.profile-redesign-page .minecraft-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.profile-redesign-page .minecraft-link-card {
    min-height: 0;
    padding: 24px 18px;
    border-radius: 22px;
  }

  body.profile-redesign-page .minecraft-link-form,
  body.profile-redesign-page .minecraft-identity-card,
  body.profile-redesign-page .minecraft-identity-card__player,
  body.profile-redesign-page .minecraft-identity-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.profile-redesign-page .minecraft-player-head {
    width: 72px;
    height: 72px;
  }

  body.profile-redesign-page .minecraft-stat-grid {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .minecraft-location {
    flex-direction: column;
  }
}

.ticket-field--wide {
  grid-column: 1 / -1;
}

body.wiki-page {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(180deg, #090909 0%, #060606 100%);
  color: #eef3f8;
}

.wiki-app {
  --wiki-accent: #9fe6ff;
  min-height: 100vh;
}

.wiki-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(18px);
}

.wiki-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wiki-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.wiki-search {
  position: relative;
  flex: 0 1 460px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.wiki-search__icon {
  color: rgba(255, 255, 255, 0.42);
  font-size: 16px;
}

.wiki-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.wiki-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.wiki-search__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 230px;
  gap: 28px;
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.wiki-sidebar,
.wiki-toc {
  min-width: 0;
}

.wiki-sidebar__inner,
.wiki-toc__inner {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.wiki-sidebar__inner {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.2);
}

.wiki-sidebar__eyebrow,
.wiki-article__eyebrow {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wiki-sidebar__intro h1,
.wiki-article__head h2 {
  margin: 8px 0 0;
  color: #fff;
  line-height: 1.08;
}

.wiki-sidebar__intro h1 {
  font-size: 28px;
}

.wiki-sidebar__intro p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.6;
}

.wiki-nav {
  display: grid;
  gap: 16px;
}

.wiki-nav-group {
  display: grid;
  gap: 9px;
}

.wiki-nav-group__head {
  display: grid;
  gap: 4px;
}

.wiki-nav-group__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wiki-nav-group__title img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  object-fit: contain;
  opacity: 0.8;
}

.wiki-nav-group__sub {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  line-height: 1.45;
}

.wiki-nav-group__pages {
  display: grid;
  gap: 4px;
}

.wiki-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.wiki-nav-link__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.wiki-nav-link__label img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  object-fit: contain;
  opacity: 0.74;
}

.wiki-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.wiki-nav-link.is-active {
  background: rgba(159, 230, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(159, 230, 255, 0.16);
}

.wiki-nav-empty,
.wiki-toc__empty,
.wiki-sidebar__footer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.5;
}

.wiki-sidebar__footer {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-content {
  min-width: 0;
}

.wiki-article {
  padding: 32px 34px 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 44px rgba(0, 0, 0, 0.22);
}

.wiki-article__cover {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wiki-article__cover img {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: cover;
}

.wiki-article__head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.wiki-article__head h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.wiki-article__lead {
  margin: 0;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.7;
}

.wiki-article__meta {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.wiki-markdown {
  color: rgba(244, 248, 252, 0.92);
  font-size: 15px;
  line-height: 1.82;
}

.wiki-markdown h1,
.wiki-markdown h2,
.wiki-markdown h3,
.wiki-markdown h4 {
  margin: 36px 0 12px;
  color: #fff;
  line-height: 1.18;
  scroll-margin-top: 112px;
}

.wiki-markdown h1 { font-size: 36px; }
.wiki-markdown h2 { font-size: 28px; }
.wiki-markdown h3 { font-size: 22px; }
.wiki-markdown h4 { font-size: 18px; }

.wiki-markdown p,
.wiki-markdown ul,
.wiki-markdown ol {
  margin: 0 0 16px;
}

.wiki-markdown ul,
.wiki-markdown ol {
  padding-left: 24px;
}

.wiki-markdown li + li {
  margin-top: 8px;
}

.wiki-markdown a {
  color: var(--wiki-accent);
  text-decoration: none;
}

.wiki-markdown a:hover {
  text-decoration: underline;
}

.wiki-markdown code {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0f7fb;
  font-size: 0.92em;
}

.wiki-code {
  margin: 20px 0;
  padding: 18px 20px;
  overflow: auto;
  border-radius: 20px;
  background: #050608;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wiki-code code {
  padding: 0;
  background: transparent;
  color: #ecf6ff;
  font-size: 13px;
}

.wiki-callout {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 18px 18px 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wiki-callout strong {
  font-size: 13px;
}

.wiki-callout--note {
  box-shadow: inset 3px 0 0 rgba(159, 230, 255, 0.62), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wiki-callout--tip {
  box-shadow: inset 3px 0 0 rgba(187, 255, 216, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wiki-callout--warning {
  box-shadow: inset 3px 0 0 rgba(255, 220, 150, 0.76), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wiki-callout--info {
  box-shadow: inset 3px 0 0 rgba(200, 200, 200, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wiki-figure {
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.wiki-figure img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.wiki-figure figcaption {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-align: center;
}

.wiki-toc__title {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wiki-toc__list {
  display: grid;
  gap: 6px;
}

.wiki-toc__link {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}

.wiki-toc__link:hover {
  color: #fff;
}

.wiki-toc__link--level-3,
.wiki-toc__link--level-4 {
  padding-left: 12px;
}

.wiki-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.wiki-pager__item {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.wiki-pager__item span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.wiki-pager__item span img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  opacity: 0.76;
}

.wiki-pager__item strong {
  font-size: 15px;
  line-height: 1.4;
}

.wiki-pager__item--next {
  text-align: right;
}

.wiki-empty-state {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 420px;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
}

.wiki-empty-state strong {
  color: #fff;
  font-size: 20px;
}

.admin-wiki-panel {
  display: grid;
  gap: 16px;
}

.admin-wiki-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-wiki-stage {
  min-height: 560px;
}

.admin-wiki-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 410px;
  gap: 16px;
}

.admin-wiki-column {
  min-width: 0;
}

.admin-wiki-column--preview {
  align-self: start;
}

.admin-wiki-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(11, 11, 11, 0.99)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.admin-wiki-card--preview {
  position: sticky;
  top: 98px;
}

.admin-wiki-card__head,
.admin-wiki-card__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-wiki-card__eyebrow {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-wiki-card h3 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.admin-route-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 800;
}

.admin-route-chip img {
  width: 14px;
  height: 14px;
  opacity: 0.82;
  object-fit: contain;
}

.admin-wiki-tree,
.admin-wiki-page-list,
.admin-wiki-group-preview__list {
  display: grid;
  gap: 12px;
}

.admin-wiki-group-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-wiki-group-card.is-active {
  box-shadow: inset 0 0 0 1px rgba(159, 230, 255, 0.16);
  background: rgba(159, 230, 255, 0.05);
}

.admin-wiki-group-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-wiki-group-card__button {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.admin-wiki-group-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.admin-wiki-group-card__title img {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  opacity: 0.82;
  object-fit: contain;
}

.admin-wiki-group-card__meta,
.admin-wiki-group-card__desc,
.admin-wiki-group-card__empty,
.admin-wiki-group-preview p,
.admin-wiki-group-preview__item span,
.admin-wiki-inline-note span,
.admin-wiki-stat-row {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  line-height: 1.55;
}

.admin-wiki-group-card__desc {
  margin: 0;
}

.admin-wiki-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.admin-wiki-page-link.is-active {
  background: rgba(159, 230, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(159, 230, 255, 0.16);
}

.admin-wiki-page-link__main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-wiki-page-link__main img {
  width: 14px;
  height: 14px;
  opacity: 0.78;
  border-radius: 4px;
  object-fit: contain;
}

.admin-wiki-page-link__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-wiki-page-link__state.is-published {
  background: rgba(95, 214, 125, 0.16);
  box-shadow: inset 0 0 0 1px rgba(111, 231, 142, 0.2), 0 0 12px rgba(84, 210, 120, 0.12);
}

.admin-wiki-page-link__state.is-draft {
  background: rgba(255, 204, 80, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.22), 0 0 12px rgba(255, 203, 63, 0.12);
}

.admin-wiki-page-link__state-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
}

.admin-wiki-page-link__state-icon.is-published {
  width: 18px;
  height: 18px;
  filter: hue-rotate(74deg) saturate(2.2) brightness(1.18) drop-shadow(0 0 8px rgba(118, 255, 151, 0.24));
}

.admin-wiki-page-link__state-icon.is-draft {
  filter: hue-rotate(18deg) saturate(2.3) brightness(1.18) drop-shadow(0 0 8px rgba(255, 214, 79, 0.2));
}

.admin-wiki-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-wiki-summary {
  min-height: 96px;
}

.admin-wiki-markdown {
  min-height: 420px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.admin-wiki-toggle {
  min-height: 48px;
  padding-top: 22px;
}

.admin-wiki-inline-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-wiki-inline-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-wiki-inline-note span img {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  object-fit: contain;
}

.admin-wiki-inline-note code {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f1f6fa;
  font-size: 12px;
}

.admin-wiki-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-wiki-media-panel {
  display: grid;
  gap: 14px;
}

.admin-wiki-media-panel--compact {
  gap: 12px;
}

.admin-wiki-media-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-wiki-media-panel__head strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.admin-wiki-media-panel__head span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.55;
  max-width: 620px;
}

.admin-wiki-media-current {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-wiki-media-slot {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-wiki-media-slot--filled {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.admin-wiki-media-slot--icon {
  grid-template-columns: 54px minmax(0, 1fr);
}

.admin-wiki-media-slot--icon.admin-wiki-media-slot--filled {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.admin-wiki-media-slot__preview,
.admin-wiki-media-slot__placeholder {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-wiki-media-slot__preview {
  overflow: hidden;
}

.admin-wiki-media-slot__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-wiki-media-slot__preview.is-icon img {
  object-fit: contain;
}

.admin-wiki-media-slot__placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  padding: 6px;
}

.admin-wiki-media-slot__copy {
  min-width: 0;
}

.admin-wiki-media-slot__copy strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.admin-wiki-media-slot__copy span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

.admin-wiki-assets__dropzone {
  margin-top: 0;
}

.admin-wiki-form-grid--media {
  align-items: end;
}

.admin-wiki-insert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  grid-column: 1 / -1;
}

.admin-wiki-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.admin-wiki-asset {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-wiki-asset.is-selected {
  border-color: rgba(159, 230, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(159, 230, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.admin-wiki-asset__preview {
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.18);
}

.admin-wiki-asset__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-wiki-asset__meta {
  display: grid;
  gap: 4px;
  padding: 12px 12px 10px;
}

.admin-wiki-asset__meta strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.admin-wiki-asset__meta span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.45;
}

.admin-wiki-asset__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 12px 12px;
}

.admin-wiki-asset__actions .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-wiki-asset-list {
  display: grid;
  gap: 12px;
}

.admin-wiki-asset-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-wiki-asset-row__preview {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-wiki-asset-row__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.admin-wiki-asset-row__main {
  min-width: 0;
}

.admin-wiki-asset-row__path {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  line-height: 1.45;
  word-break: break-all;
  white-space: normal;
}

.admin-wiki-asset-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-screenshots-empty--wiki {
  margin-top: 0;
}

.wiki-article--preview {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-article--preview .wiki-article__head {
  margin-bottom: 20px;
}

.wiki-article__cover--preview img {
  max-height: 240px;
}

.wiki-article--preview .wiki-article__head h2 {
  font-size: 30px;
}

.admin-wiki-group-preview {
  display: grid;
  gap: 14px;
}

.admin-wiki-group-preview p {
  margin: 0;
}

.admin-wiki-group-preview__item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-wiki-group-preview__item strong {
  color: #fff;
  font-size: 14px;
}

.admin-wiki-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
}

.admin-wiki-mini {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: #090b0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-wiki-mini__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-wiki-mini__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.admin-wiki-mini__brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--wiki-mini-accent);
  box-shadow: 0 0 14px rgba(159, 230, 255, 0.3);
}

.admin-wiki-mini__search {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.admin-wiki-mini__body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
}

.admin-wiki-mini__sidebar,
.admin-wiki-mini__content {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-wiki-mini__eyebrow,
.admin-wiki-mini__footer {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  line-height: 1.5;
}

.admin-wiki-mini__title,
.admin-wiki-mini__page-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.admin-wiki-mini__subtitle {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

.admin-wiki-mini__nav {
  display: grid;
  gap: 6px;
}

.admin-wiki-mini__nav span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.admin-wiki-mini__nav span.is-active {
  background: rgba(159, 230, 255, 0.09);
  color: #fff;
}

.admin-wiki-mini__line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-wiki-mini__line--short {
  width: 62%;
}

.admin-wiki-mini__callout {
  height: 54px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(159, 230, 255, 0.18), rgba(255, 255, 255, 0.03));
}

@media (max-width: 1340px) {
  .wiki-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .wiki-toc {
    display: none;
  }

  .admin-wiki-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .admin-wiki-column--preview {
    grid-column: 1 / -1;
  }

  .admin-wiki-card--preview {
    position: static;
  }

  .admin-wiki-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .wiki-layout,
  .admin-wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-layout {
    width: min(100%, calc(100% - 24px));
    gap: 18px;
    padding-top: 18px;
  }

  .wiki-sidebar__inner,
  .wiki-toc__inner {
    position: static;
  }

  .admin-wiki-form-grid,
  .admin-wiki-mini__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wiki-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px;
  }

  .wiki-search {
    flex-basis: auto;
  }

  .wiki-article {
    padding: 24px 18px 22px;
    border-radius: 24px;
  }

  .wiki-sidebar__inner,
  .admin-wiki-card {
    padding: 16px;
    border-radius: 20px;
  }

  .wiki-pager {
    grid-template-columns: 1fr;
  }

  .admin-wiki-head,
  .admin-wiki-inline-note,
  .admin-wiki-stat-row {
    align-items: flex-start;
  }

  .admin-wiki-panel .actions,
  .admin-wiki-panel .actions .btn {
    width: 100%;
  }
}

/* Wiki clean redesign and shared control polish */
select.input,
select.ticket-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-color: rgba(255, 255, 255, 0.07);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

select.input option,
select.ticket-input option {
  color: #f5f5f5;
  background: #101010;
}

.btn__icon,
.ticket-icon-btn img,
.profile-icon-action img,
.admin-route-chip img,
.admin-wiki-group-card__title img,
.admin-wiki-page-link__main img,
.admin-wiki-inline-note span img,
.wiki-nav-group__title img,
.wiki-nav-link__label img {
  filter: brightness(0) invert(1);
  opacity: 0.86;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.ticket-icon-btn:hover img[src$="/icons/delete.svg"],
.ticket-icon-btn:focus-visible img[src$="/icons/delete.svg"],
.profile-icon-action--danger:hover img,
.profile-icon-action--danger:focus-visible img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(90%) saturate(1869%) hue-rotate(331deg) brightness(103%) contrast(96%);
  opacity: 1;
}

body.wiki-page {
  background: #090909;
  color: #f3f3f3;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.wiki-app {
  --wiki-accent: #9fe6ff;
  --wiki-callout-note: #d7d7d7;
  --wiki-callout-tip: #f2f2f2;
  --wiki-callout-warning: #ffffff;
  --wiki-callout-info: #b8c4cc;
  --wiki-callout-icon: #ffffff;
  --wiki-callout-note-icon: #ffffff;
  --wiki-callout-tip-icon: #ffffff;
  --wiki-callout-warning-icon: #ffffff;
  --wiki-callout-info-icon: #ffffff;
}

.wiki-header {
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(14px);
}

.wiki-brand {
  font-size: 16px;
  font-weight: 800;
}

.wiki-brand img {
  width: 30px;
  height: 30px;
}

.wiki-search {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.wiki-search:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: color-mix(in srgb, var(--wiki-accent) 28%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wiki-accent) 14%, transparent);
}

.wiki-search__hint {
  height: 24px;
  min-width: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.wiki-layout {
  grid-template-columns: 252px minmax(0, 830px) 220px;
  gap: 36px;
  width: min(1560px, calc(100% - 28px));
  margin-left: max(14px, calc((100vw - 1560px) / 2));
  margin-right: auto;
  padding: 24px 0 52px;
}

.wiki-sidebar__inner,
.wiki-toc__inner {
  top: 82px;
}

.wiki-sidebar__inner {
  gap: 18px;
  padding: 6px 4px 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-nav {
  gap: 22px;
}

.wiki-nav-group {
  gap: 8px;
}

.wiki-nav-group__head {
  display: none;
}

.wiki-nav-group__title {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.wiki-nav-group__title img {
  width: 13px;
  height: 13px;
  opacity: 0.45;
}

.wiki-nav-group__sub {
  display: none;
}

.wiki-nav-group__pages {
  display: grid;
  gap: 2px;
}

.wiki-nav-item {
  display: grid;
  gap: 2px;
}

.wiki-nav-link,
.wiki-nav-folder {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.wiki-nav-link__label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wiki-nav-link__label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-nav-link__label img {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.58;
}

.wiki-nav-link:hover,
.wiki-nav-folder:hover {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.92);
}

.wiki-nav-link:hover img,
.wiki-nav-folder:hover img {
  opacity: 0.92;
}

.wiki-nav-link.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: none;
}

.wiki-nav-link.is-active img {
  opacity: 1;
}

.wiki-nav-chevron {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 17px;
  line-height: 1;
  opacity: 0.52;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.wiki-nav-folder.is-open .wiki-nav-chevron {
  transform: rotate(90deg);
  opacity: 0.78;
}

.wiki-nav-children {
  display: grid;
  gap: 2px;
  margin: 3px 0 4px 14px;
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.wiki-nav-empty,
.wiki-toc__empty {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.4);
}

.wiki-content {
  max-width: 830px;
}

.wiki-article {
  padding: 12px 4px 78px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-article__head {
  margin-bottom: 22px;
}

.wiki-article__head h1,
.wiki-article__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.035em;
  animation: none;
  transform: none;
  transition: none;
}

.wiki-article__eyebrow,
.wiki-article__lead,
.wiki-article__meta {
  display: none;
}

.wiki-markdown {
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.8;
}

.wiki-markdown h1,
.wiki-markdown h2,
.wiki-markdown h3,
.wiki-markdown h4 {
  margin: 34px 0 12px;
  color: #fff;
  letter-spacing: -0.025em;
}

.wiki-markdown h1:first-child,
.wiki-markdown h2:first-child,
.wiki-markdown h3:first-child {
  margin-top: 0;
  animation: none;
  transform: none;
  transition: none;
}

.wiki-markdown h1 {
  font-size: clamp(34px, 4vw, 46px);
}

.wiki-markdown h2 {
  font-size: 27px;
}

.wiki-markdown h3 {
  font-size: 21px;
}

.wiki-markdown h4 {
  font-size: 17px;
}

.wiki-markdown a {
  color: var(--wiki-accent);
  text-decoration: none;
}

.wiki-markdown a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiki-markdown code {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.wiki-markdown blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.18);
}

.wiki-markdown blockquote p:last-child {
  margin-bottom: 0;
}

.wiki-code {
  border-radius: 10px;
  background: #050505;
  box-shadow: none;
}

.wiki-callout {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.wiki-callout--note {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--wiki-callout-note) 14%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 3px 0 0 var(--wiki-callout-note), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.wiki-callout--tip {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--wiki-callout-tip) 14%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 3px 0 0 var(--wiki-callout-tip), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.wiki-callout--warning {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--wiki-callout-warning) 16%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 3px 0 0 var(--wiki-callout-warning), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.wiki-callout--info {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--wiki-callout-info) 16%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 3px 0 0 var(--wiki-callout-info), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.wiki-figure img {
  border-radius: 10px;
  box-shadow: none;
}

.wiki-toc__inner {
  gap: 10px;
  padding-top: 2px;
}

.wiki-toc__title {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.wiki-toc__link {
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

.wiki-toc__link:hover {
  color: rgba(255, 255, 255, 0.92);
}

.wiki-pager {
  display: none;
}

.wiki-empty-state {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-wiki-layout {
  grid-template-columns: 280px minmax(0, 1fr) 430px;
  gap: 14px;
  transition: grid-template-columns 0.24s ease, gap 0.24s ease;
}

.admin-wiki-layout.is-preview-full {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  overflow: visible;
}

.admin-wiki-column {
  transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease;
}

.admin-wiki-layout.is-preview-full .admin-wiki-column--tree,
.admin-wiki-layout.is-preview-full .admin-wiki-column--editor {
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.admin-wiki-layout.is-preview-full .admin-wiki-column--preview {
  grid-column: 1 / -1;
  overflow: visible;
  min-width: 0;
}

.admin-wiki-layout.is-preview-full .admin-wiki-card--preview {
  position: static;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto;
}

.admin-wiki-layout.is-preview-full .wiki-article--preview {
  max-width: 900px;
  margin: 0 auto;
}

.admin-wiki-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.admin-wiki-group-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  box-shadow: none;
}

.admin-wiki-group-card.is-active,
.admin-wiki-page-link.is-active {
  background: rgba(255, 255, 255, 0.085);
  box-shadow: none;
}

.admin-wiki-page-link {
  min-height: 36px;
  border-radius: 9px;
  background: transparent;
  transition: background 0.16s ease, color 0.16s ease;
}

.admin-wiki-page-link:hover {
  background: rgba(255, 255, 255, 0.055);
}

.admin-wiki-preview-toggle {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}

.admin-wiki-color-preview {
  display: grid;
  gap: 12px;
}

.admin-wiki-color-preview__accent,
.admin-wiki-callout-sample {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-wiki-color-preview__accent span,
.admin-wiki-callout-sample span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.45;
}

.admin-wiki-color-preview__accent strong,
.admin-wiki-callout-sample strong {
  color: #fff;
  font-size: 14px;
}

.admin-wiki-callout-sample {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--sample-color) 14%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 3px 0 0 var(--sample-color);
}

.admin-wiki-callout-samples {
  display: grid;
  gap: 10px;
}

.wiki-article--preview {
  max-height: none;
}

@media (max-width: 1340px) {
  .wiki-layout {
    grid-template-columns: 242px minmax(0, 1fr);
    width: min(100%, calc(100% - 24px));
    margin: 0 auto;
  }

  .admin-wiki-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .wiki-layout,
  .admin-wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar__inner,
  .wiki-toc__inner {
    position: static;
  }
}

.wiki-brand img {
  filter: brightness(0) invert(1);
}

.wiki-nav-section-toggle {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.wiki-nav-section-toggle:hover {
  background: rgba(255, 255, 255, 0.045);
}

.wiki-nav-section-toggle .wiki-nav-group__title {
  padding: 0;
  color: rgba(255, 255, 255, 0.46);
}

.wiki-nav-section-toggle:hover .wiki-nav-group__title,
.wiki-nav-section-toggle.is-open .wiki-nav-group__title {
  color: rgba(255, 255, 255, 0.72);
}

.wiki-nav-section-toggle .wiki-nav-chevron {
  color: rgba(255, 255, 255, 0.46);
}

.wiki-nav-group__pages {
  display: none;
}

.wiki-nav-group__pages.is-open {
  display: grid;
  margin: 3px 0 0 12px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  animation: none;
  transform: none;
}

.wiki-nav-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: currentColor;
  opacity: 0.62;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.wiki-nav-chevron path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wiki-nav-folder.is-open .wiki-nav-chevron,
.wiki-nav-section-toggle.is-open .wiki-nav-chevron {
  transform: rotate(90deg);
  opacity: 0.9;
}

.wiki-nav-children {
  animation: wikiNavReveal 0.18s ease both;
}

.wiki-app.is-wiki-page-switching .wiki-nav-group__pages.is-open,
.wiki-app.is-wiki-page-switching .wiki-nav-children,
.wiki-app.is-wiki-page-switching .wiki-article__head,
.wiki-app.is-wiki-page-switching .wiki-markdown h1:first-child,
.wiki-app.is-wiki-page-switching .wiki-markdown h2:first-child,
.wiki-app.is-wiki-page-switching .wiki-markdown h3:first-child {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

@keyframes wikiNavReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wiki-render-error {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 3px 0 0 #ff5a5a;
}

.wiki-render-error strong {
  color: #fff;
  font-size: 13px;
}

.wiki-render-error span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.admin-wiki-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.admin-wiki-help-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-wiki-help-card h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}

.admin-wiki-help-card code {
  display: block;
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.82);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
}
  .admin-wiki-insert-row,
  .admin-wiki-asset-row {
    grid-template-columns: 1fr;
  }

  .admin-wiki-asset-row__preview {
    width: 64px;
    height: 64px;
  }

  .admin-wiki-asset-row__actions {
    justify-content: flex-start;
  }

.admin-wiki-page-link__state-glyph {
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.admin-wiki-page-link__state-glyph.is-published {
  width: 20px;
  height: 20px;
  color: #77f395;
  -webkit-mask-image: url("/icons/ok.svg");
  mask-image: url("/icons/ok.svg");
  filter: drop-shadow(0 0 8px rgba(119, 243, 149, 0.26));
}

.admin-wiki-page-link__state-glyph.is-draft {
  width: 17px;
  height: 17px;
  color: #ffd95d;
  -webkit-mask-image: url("/icons/edit.svg");
  mask-image: url("/icons/edit.svg");
  filter: drop-shadow(0 0 8px rgba(255, 217, 93, 0.22));
}

.admin-wiki-media-panel--inline {
  gap: 10px;
}

.admin-wiki-media-inline-list {
  display: grid;
  gap: 10px;
}

.admin-wiki-media-inline {
  display: grid;
  grid-template-columns: auto 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-wiki-media-inline__tag {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-wiki-media-inline__thumb {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-wiki-media-inline__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.admin-wiki-media-inline__thumb.is-cover img {
  padding: 6px;
}

.admin-wiki-media-inline__thumb.is-empty span {
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-wiki-media-inline__input {
  min-width: 0;
}

.admin-wiki-media-inline .ticket-icon-btn[disabled] {
  opacity: 0.34;
  cursor: default;
}

.admin-wiki-assets-gallery {
  margin-top: 16px;
}

.admin-wiki-asset-shot {
  cursor: default;
  user-select: auto;
}

.admin-wiki-asset-shot::after {
  display: none;
}

.admin-wiki-asset-shot:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.admin-wiki-asset-shot__preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-wiki-asset-shot__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-wiki-asset-shot__body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-wiki-asset-shot__title {
  width: 100%;
}

.admin-wiki-asset-shot__file {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.admin-wiki-asset-shot__path {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
  white-space: normal;
}

.admin-wiki-asset-shot__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 860px) {
  .admin-wiki-media-inline {
    grid-template-columns: 1fr;
  }

  .admin-wiki-media-inline__thumb {
    width: 64px;
    height: 64px;
  }

  .admin-wiki-asset-shot__preview {
    aspect-ratio: 16 / 10;
  }

  .admin-wiki-asset-shot__actions {
    justify-content: flex-start;
  }
}

.admin-shell {
  position: relative;
}

.admin-sidebar-toggle {
  position: absolute;
  top: 14px;
  left: 232px;
  z-index: 4;
  width: 30px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: rgba(8, 8, 8, 0.78);
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: left 0.22s ease, color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.admin-sidebar-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 12, 0.9);
}

.admin-sidebar-toggle__glyph {
  font-size: 20px;
  line-height: 1;
  transform: translateX(1px);
}

body.admin-sidebar-collapsed .admin-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

body.admin-sidebar-collapsed .admin-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px);
}

body.admin-sidebar-collapsed .admin-sidebar-toggle {
  left: 0;
}

body.admin-sidebar-collapsed .admin-sidebar-toggle__glyph {
  transform: rotate(180deg) translateX(1px);
}

.admin-sidebar {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.admin-wiki-page-link__state,
.admin-wiki-page-link__state.is-published,
.admin-wiki-page-link__state.is-draft {
  min-width: 20px;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-wiki-page-link__state-glyph {
  filter: none;
}

.admin-wiki-page-link__state-glyph.is-published {
  width: 20px;
  height: 20px;
}

.admin-wiki-page-link__state-glyph.is-draft {
  width: 16px;
  height: 16px;
}

.admin-wiki-assets-gallery {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.admin-wiki-asset-shot {
  overflow: hidden;
  border-radius: 18px;
}

.admin-wiki-asset-shot__preview {
  aspect-ratio: 1.08 / 1;
  min-height: 212px;
  overflow: hidden;
}

.admin-wiki-asset-shot__preview img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-wiki-asset-shot__body {
  min-width: 0;
  align-content: start;
}

.admin-wiki-asset-shot__title {
  min-width: 0;
}

.admin-wiki-asset-shot__path,
.admin-wiki-asset-shot__file {
  min-width: 0;
}

.admin-wiki-asset-shot__path {
  overflow: hidden;
}

.admin-wiki-asset-shot .ticket-icon-btn {
  background: transparent;
  box-shadow: none;
  border: 0;
}

.admin-wiki-asset-shot .ticket-icon-btn:hover {
  background: transparent;
  transform: scale(1.06);
}

.admin-wiki-asset-shot .ticket-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.wiki-inline-image {
  display: inline-block;
  vertical-align: middle;
  margin: -2px 6px 0;
  border-radius: 6px;
  object-fit: contain;
}

/* Wiki 2026 polish and Markdown extensions */
.site-header {
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-header.site-header--admin-condensed {
  pointer-events: none;
}

body.wiki-page {
  background: #121212;
  color: #f8f8f8;
}

.wiki-header {
  background: rgba(20, 20, 20, 0.94);
}

.wiki-brand {
  margin-left: clamp(72px, 12vw, 192px);
}

.wiki-sidebar__inner {
  padding: 14px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(12, 12, 12, 0.96)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055), 0 18px 34px rgba(0, 0, 0, 0.18);
}

.wiki-nav {
  gap: 18px;
}

.wiki-nav-section {
  padding: 0 4px;
}

.wiki-nav-group__title {
  padding: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.wiki-nav-group__title img {
  width: 18px;
  height: 18px;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.wiki-nav-group__pages,
.wiki-nav-group__pages.is-open {
  display: grid;
  gap: 2px;
  margin: 7px 0 0;
  padding-left: 0;
  border-left: 0;
}

.wiki-nav-folder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
}

.wiki-nav-link--folder {
  min-width: 0;
}

.wiki-nav-folder-toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.wiki-nav-folder-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.wiki-nav-folder-toggle.is-open .wiki-nav-chevron {
  transform: rotate(90deg);
  opacity: 0.9;
}

.wiki-nav-children {
  margin-left: 18px;
  animation: none !important;
}

.wiki-table-wrap {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wiki-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.wiki-table th,
.wiki-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  vertical-align: top;
}

.wiki-table th {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.055);
}

.wiki-table tr:last-child td {
  border-bottom: 0;
}

.wiki-text-accent {
  color: var(--wiki-accent);
  font-weight: inherit;
}

.wiki-text-color {
  font-weight: inherit;
}

.wiki-text-highlight {
  padding: 0.08em 0.34em;
  border-radius: 0.42em;
  background: color-mix(in srgb, var(--wiki-mark-color, var(--wiki-accent)) 32%, rgba(255, 255, 255, 0.03));
  color: #fff;
  font-weight: inherit;
  box-shadow: none;
}

.wiki-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  margin: 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease;
}

.wiki-copy-btn:hover {
  color: var(--wiki-accent);
}

.wiki-copy-btn img {
  display: none;
}

.wiki-copy-btn::after {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-image: url('/icons/copy.svg');
  mask-image: url('/icons/copy.svg');
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.wiki-copy-btn.is-copied {
  color: var(--wiki-accent);
}

.wiki-copy-btn.is-copy-failed {
  color: #ffcd5c;
}

.wiki-callout {
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  background: color-mix(in srgb, var(--wiki-callout-note) 22%, rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.wiki-callout--note {
  background: color-mix(in srgb, var(--wiki-callout-note) 24%, rgba(255, 255, 255, 0.045)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout--tip {
  background: color-mix(in srgb, var(--wiki-callout-tip) 24%, rgba(255, 255, 255, 0.045)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout--warning {
  background: color-mix(in srgb, var(--wiki-callout-warning) 26%, rgba(255, 255, 255, 0.045)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout--info {
  background: color-mix(in srgb, var(--wiki-callout-info) 26%, rgba(255, 255, 255, 0.045)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout--note.wiki-callout--framed {
  box-shadow: inset 3px 0 0 var(--wiki-callout-note), inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout--tip.wiki-callout--framed {
  box-shadow: inset 3px 0 0 var(--wiki-callout-tip), inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout--warning.wiki-callout--framed {
  box-shadow: inset 3px 0 0 var(--wiki-callout-warning), inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout--info.wiki-callout--framed {
  box-shadow: inset 3px 0 0 var(--wiki-callout-info), inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.wiki-callout__icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 3px;
  background: var(--wiki-callout-icon, #fff);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.wiki-callout--note .wiki-callout__icon {
  background: var(--wiki-callout-note-icon, var(--wiki-callout-icon, #fff));
}

.wiki-callout--tip .wiki-callout__icon {
  background: var(--wiki-callout-tip-icon, var(--wiki-callout-icon, #fff));
}

.wiki-callout--warning .wiki-callout__icon {
  background: var(--wiki-callout-warning-icon, var(--wiki-callout-icon, #fff));
}

.wiki-callout--info .wiki-callout__icon {
  background: var(--wiki-callout-info-icon, var(--wiki-callout-icon, #fff));
}

.wiki-figure img,
.wiki-inline-image {
  cursor: zoom-in;
}

.wiki-inline-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: -2px 4px 0;
  vertical-align: middle;
  object-fit: contain;
  border-radius: 0;
}

.wiki-details {
  margin: 20px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.wiki-details summary {
  min-height: 44px;
  padding: 11px 14px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.wiki-details__body {
  padding: 0 14px 14px;
}

.wiki-quote-line {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid #fff;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none !important;
}

.wiki-figure--square img,
.wiki-inline-image.wiki-image--square {
  border-radius: 0 !important;
}

.wiki-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.wiki-image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wiki-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(16px);
}

.wiki-image-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 1280px);
  max-height: 88vh;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.wiki-image-lightbox.is-open .wiki-image-lightbox__content {
  opacity: 1;
}

.wiki-image-lightbox__image {
  display: block;
  max-width: min(94vw, 1280px);
  max-height: 88vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.wiki-image-lightbox__close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

body.wiki-lightbox-open {
  overflow: hidden;
}

.admin-wiki-settings-grid .ticket-color-input {
  width: 78px;
  min-width: 78px;
  justify-self: start;
}

.admin-wiki-card--preview {
  max-height: calc(100vh - 112px);
  overflow: auto;
  overscroll-behavior: contain;
}

.admin-wiki-layout.is-preview-full .admin-wiki-card--preview {
  max-height: none;
}

.admin-wiki-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.admin-wiki-color-field {
  min-height: 92px;
  justify-content: space-between;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.admin-wiki-color-preview {
  max-width: 100%;
}

.admin-wiki-color-settings {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-wiki-callout-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.admin-wiki-color-card {
  min-width: 0;
  padding: 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.admin-wiki-color-card--accent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-wiki-color-card--callout {
  display: grid;
  gap: 8px;
}

.admin-wiki-color-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-wiki-color-card__preview {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-bg) 34%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-wiki-color-card__accent {
  color: var(--card-bg);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.admin-wiki-color-card__icon {
  width: 21px;
  height: 21px;
  background: var(--card-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.admin-wiki-color-card__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-wiki-color-card__copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.admin-wiki-color-card__copy span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.45;
}

.admin-wiki-color-card__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-wiki-color-card__control {
  min-width: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  gap: 6px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.admin-wiki-color-card__control span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 750;
  width: 100%;
  text-align: center;
}

.admin-wiki-color-card__control .ticket-color-input {
  width: 64px;
  min-width: 64px;
  height: 38px;
  justify-self: center;
}

.admin-wiki-media-inline__thumb.is-icon,
.admin-wiki-media-slot__preview.is-icon {
  background: transparent;
  box-shadow: none;
}

.admin-wiki-media-inline__thumb.is-icon img,
.admin-wiki-media-slot__preview.is-icon img {
  padding: 0;
}

@media (max-width: 860px) {
  .admin-wiki-color-settings,
  .admin-wiki-callout-color-grid {
    grid-template-columns: 1fr;
  }

  .admin-wiki-color-card--accent,
  .admin-wiki-color-card__controls {
    grid-template-columns: 1fr;
  }

  .admin-wiki-color-card__control {
    align-items: flex-start;
  }
}

.admin-wiki-card__actions [data-wiki-page-badge].is-published {
  background: rgba(64, 190, 98, 0.24);
  color: #d9ffe3;
}

.admin-wiki-card__actions [data-wiki-page-badge].is-draft {
  background: rgba(255, 211, 88, 0.24);
  color: #fff2bf;
}

.admin-wiki-asset-shot {
  position: relative;
}

.admin-wiki-asset-shot__edit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-wiki-asset-shot:hover .admin-wiki-asset-shot__edit,
.admin-wiki-asset-shot:focus-within .admin-wiki-asset-shot__edit {
  opacity: 1;
  transform: translateY(0);
}

.admin-wiki-asset-shot .ticket-icon-btn,
.admin-wiki-asset-shot .ticket-icon-btn:hover {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.admin-wiki-asset-shot__replace-input {
  display: none;
}

.admin-wiki-group-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .admin-sidebar-toggle {
    display: none;
  }
}

/* Tickets and wiki polish 2026-05-25 */
.wiki-nav-link {
  position: relative;
}

.wiki-nav-link.is-active {
  background: transparent !important;
  color: var(--wiki-accent) !important;
  box-shadow: none !important;
}

.wiki-nav-link.is-active .wiki-nav-link__label span {
  color: var(--wiki-accent);
}

.wiki-nav-link.is-active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 999px;
  background: var(--wiki-accent);
  opacity: 0.95;
}

.wiki-nav-children {
  border-left-color: color-mix(in srgb, var(--wiki-accent) 34%, rgba(255, 255, 255, 0.08)) !important;
}

.wiki-nav-children .wiki-nav-link.is-active::before {
  left: -12px;
}

.admin-wiki-settings-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
}

.admin-wiki-color-settings {
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-wiki-callout-color-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.admin-wiki-color-card {
  border-radius: 12px;
}

.admin-wiki-color-card--accent {
  grid-template-columns: 44px minmax(0, 1fr) minmax(132px, auto);
}

.admin-wiki-color-card__preview {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.admin-wiki-color-card__controls {
  grid-template-columns: repeat(2, minmax(96px, 1fr));
}

.admin-wiki-color-card__control {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 8px;
  padding: 8px;
}

.admin-wiki-color-card__control span {
  text-align: left;
  line-height: 1.25;
}

.admin-wiki-color-card__control .ticket-color-input,
.admin-wiki-settings-grid .ticket-color-input {
  width: 54px;
  min-width: 54px;
  height: 36px;
}

.ticket-grid {
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
}

.ticket-create-entry-hidden,
body.profile-redesign-page .ticket-create-entry-hidden {
  display: none !important;
}

.ticket-card {
  min-width: 0;
  overflow: hidden;
  gap: 12px;
  min-height: 156px;
  padding: 17px 17px 15px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(27, 27, 27, 0.98), rgba(12, 12, 12, 0.99)),
    rgba(255, 255, 255, 0.025);
}

.ticket-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ticket-card:hover::after {
  opacity: 1;
}

.ticket-card__accent {
  left: 12px;
  right: 12px;
  top: 10px;
  height: 3px;
  border-radius: 999px;
}

.ticket-card__head,
.ticket-card__foot {
  min-width: 0;
}

.ticket-card__head {
  padding-top: 7px;
}

.ticket-card__topic {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.ticket-card__preview {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticket-card__foot > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-status {
  max-width: 48%;
  white-space: nowrap;
}

.ticket-panel {
  min-width: 0;
  border-radius: 20px;
}

.ticket-panel__head,
.ticket-panel__meta-line,
.admin-ticket-toolbar,
.ticket-panel__body,
.ticket-panel__foot {
  min-width: 0;
}

.ticket-panel__head > div {
  min-width: 0;
}

.ticket-panel__head h3 {
  overflow-wrap: anywhere;
}

.ticket-panel__foot .profile-secondary-action,
.ticket-panel__foot .profile-primary-action,
.ticket-message-edit__actions .profile-secondary-action,
.ticket-message-edit__actions .profile-primary-action {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
}

.ticket-panel__foot .profile-secondary-action,
.ticket-message-edit__actions .profile-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
}

.ticket-panel__foot .profile-primary-action,
.ticket-message-edit__actions .profile-primary-action {
  border: 0;
  background: #f1f7fb;
  color: #080c10;
  box-shadow: none;
}

.ticket-custom-select {
  position: relative;
  min-width: 0;
  z-index: 5;
}

.ticket-custom-select__button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ticket-custom-select__button:disabled {
  cursor: default;
  opacity: 0.56;
}

.ticket-custom-select__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-custom-select__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.ticket-custom-select__chevron {
  color: rgba(255, 255, 255, 0.52);
  transition: transform 0.16s ease;
}

.ticket-custom-select.is-open .ticket-custom-select__chevron {
  transform: rotate(180deg);
}

.ticket-custom-select__menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.ticket-custom-select.is-open .ticket-custom-select__menu {
  display: grid;
  gap: 4px;
}

.ticket-custom-select__option {
  min-width: 0;
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.ticket-custom-select__option:hover,
.ticket-custom-select__option.is-selected {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.ticket-file {
  min-width: 44px;
}

.ticket-file__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.ticket-file__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.ticket-file--compact {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.ticket-file--wide {
  width: fit-content;
  max-width: 100%;
}

.ticket-file-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-input {
  min-width: 0;
}

.ticket-input--textarea {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.ticket-composer {
  min-width: 0;
  align-items: end;
}

.ticket-composer__input {
  min-height: 44px;
  max-height: 220px;
  overflow-y: auto;
}

.ticket-messages {
  min-width: 0;
}

.ticket-message {
  min-width: 0;
}

.ticket-message__bubble {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ticket-message__content,
.ticket-message-edit {
  min-width: 0;
}

.ticket-message__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticket-message__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.ticket-message__actions time {
  justify-self: auto;
}

.ticket-message__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: 0.42;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.ticket-message__action:hover,
.ticket-message__action:focus-visible {
  opacity: 0.95;
}

.ticket-message__action img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ticket-message--user .ticket-message__action img {
  filter: none;
}

.ticket-message__action--danger {
  color: #ff8c8c;
}

.ticket-message__action--danger img {
  filter: invert(62%) sepia(34%) saturate(1390%) hue-rotate(315deg) brightness(103%) contrast(101%);
}

.ticket-message-edit {
  display: grid;
  gap: 8px;
}

.ticket-message-edit textarea {
  min-height: 92px;
  padding: 10px 12px;
}

.ticket-message-edit__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-attachment {
  cursor: zoom-in;
}

.ticket-attachment img {
  transition: transform 0.16s ease;
}

.ticket-attachment:hover img {
  transform: scale(1.035);
}

.ticket-panel--admin-chat .ticket-message__bubble {
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.ticket-panel--admin-chat .ticket-message--staff .ticket-message__author {
  color: rgba(255, 255, 255, 0.9);
}

.admin-ticket-filters .input,
select.input,
select.ticket-input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-ticket-toolbar .btn {
  min-height: 38px;
  border-radius: 12px;
  white-space: nowrap;
}

.ticket-setting-card,
.ticket-topic-badge,
.ticket-status,
.ticket-unread,
.admin-ticket-subtitle {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .admin-wiki-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ticket-card__head,
  .ticket-card__foot,
  .ticket-panel__meta-line {
    align-items: flex-start;
  }

  .ticket-card__head {
    flex-direction: column;
  }

  .ticket-status {
    max-width: 100%;
  }

  .ticket-panel__foot .profile-secondary-action,
  .ticket-panel__foot .profile-primary-action,
  .ticket-message-edit__actions .profile-secondary-action,
  .ticket-message-edit__actions .profile-primary-action {
    width: 100%;
    justify-content: center;
  }

  .admin-wiki-color-card--accent,
  .admin-wiki-color-card__controls {
    grid-template-columns: 1fr;
  }
}

/* Follow-up precision fixes */
.wiki-nav-link__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.58;
  background: rgba(255, 255, 255, 0.58);
  -webkit-mask-image: var(--wiki-nav-icon);
  mask-image: var(--wiki-nav-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.wiki-nav-link:hover .wiki-nav-link__icon,
.wiki-nav-folder:hover .wiki-nav-link__icon {
  opacity: 0.92;
  background: rgba(255, 255, 255, 0.92);
}

.wiki-nav-link.is-active {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.58) !important;
}

.wiki-nav-link.is-active::before {
  display: none;
}

.wiki-nav-link.is-active .wiki-nav-link__label span {
  color: inherit;
}

.wiki-nav-link.is-active .wiki-nav-link__icon {
  background: rgba(255, 255, 255, 0.58);
  opacity: 0.58;
}

.wiki-nav-children {
  border-left-color: rgba(255, 255, 255, 0.11) !important;
}

.wiki-nav-children .wiki-nav-link.is-active {
  color: var(--wiki-accent) !important;
}

.wiki-nav-children .wiki-nav-link.is-active::before {
  display: block;
  left: -12px;
}

.wiki-nav-children .wiki-nav-link.is-active .wiki-nav-link__label span {
  color: var(--wiki-accent);
}

.wiki-nav-children .wiki-nav-link.is-active .wiki-nav-link__icon {
  background: var(--wiki-accent);
  opacity: 1;
}

.admin-wiki-page-status[data-wiki-page-badge],
.admin-wiki-card__actions [data-wiki-page-badge] {
  max-width: none;
  overflow: visible;
  border: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.admin-wiki-card__actions [data-wiki-page-badge].is-published {
  background: rgba(64, 190, 98, 0.2) !important;
  color: #d9ffe3 !important;
}

/* Wiki nav active state: text accent everywhere, line only in nested branches */
.wiki-nav-link.is-active {
  background: transparent !important;
  color: var(--wiki-accent) !important;
  box-shadow: none !important;
}

.wiki-nav-link.is-active .wiki-nav-link__label span {
  color: var(--wiki-accent) !important;
}

.wiki-nav-link.is-active .wiki-nav-link__icon {
  background: var(--wiki-accent) !important;
  opacity: 1 !important;
}

.wiki-nav-link.is-active::before {
  display: none !important;
}

.wiki-nav-children .wiki-nav-link.is-active::before {
  display: block !important;
  left: -12px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  border-radius: 999px;
}

.wiki-nav-section .wiki-nav-section-toggle .wiki-nav-group__title,
.wiki-nav-section .wiki-nav-group__title {
  color: #fff !important;
  letter-spacing: 0;
  text-transform: none;
}

.wiki-nav-section .wiki-nav-group__title img {
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
}

.wiki-nav-section.is-active .wiki-nav-section-toggle .wiki-nav-group__title,
.wiki-nav-section.is-active .wiki-nav-group__title {
  color: #fff;
}

.wiki-nav-section.is-active .wiki-nav-group__title img {
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
}

.wiki-sidebar__inner {
  box-shadow: none !important;
}

.wiki-nav-section-toggle {
  align-items: center;
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.wiki-nav-section .wiki-nav-group__title,
.admin-wiki-group-card__title,
.wiki-nav-link__label,
.admin-wiki-page-link__main {
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
}

.wiki-nav-group__title-text,
.wiki-nav-link__label span,
.admin-wiki-group-card__title span,
.admin-wiki-page-link__main span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.wiki-nav-link,
.admin-wiki-page-link {
  align-items: center;
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.admin-wiki-group-card__button,
.admin-wiki-card__head > div,
.admin-wiki-inline-note,
.admin-wiki-inline-note span,
.admin-wiki-inline-note code {
  min-width: 0;
}

.admin-wiki-card h3,
.admin-wiki-inline-note span,
.admin-wiki-inline-note code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-wiki-inline-note code {
  white-space: normal;
}

.wiki-markdown a.wiki-link-external::after {
  content: '';
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.24em;
  background: currentColor;
  -webkit-mask-image: url('/icons/link.svg');
  mask-image: url('/icons/link.svg');
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: translateY(0.08em);
}

.wiki-search {
  flex: 0 1 260px;
  max-width: 260px;
  min-height: 40px;
  gap: 8px;
  padding: 0 11px;
  border-radius: 12px;
}

.wiki-search__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.wiki-search__icon img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  opacity: 0.58;
  filter: brightness(0) invert(1);
}

.wiki-search input {
  font-size: 13px;
}

.wiki-search__hint {
  min-width: 38px;
  height: 22px;
  border-radius: 7px;
  font-size: 10px;
}

.wiki-toc__link.is-active {
  color: var(--wiki-accent) !important;
}

.wiki-details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.wiki-details summary::-webkit-details-marker {
  display: none;
}

.wiki-details summary::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: 0.75;
  transform: rotate(45deg);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.wiki-details[open] summary::before {
  opacity: 0.95;
  transform: rotate(135deg);
}

.wiki-details-group {
  margin: 20px 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.wiki-details-group .wiki-details {
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-details-group .wiki-details + .wiki-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-details-group .wiki-details summary {
  min-height: 58px;
  padding: 15px 18px;
  color: rgba(255, 255, 255, 0.68);
}

.wiki-details-group .wiki-details[open] summary {
  color: #fff;
}

.wiki-details-group .wiki-details__body {
  padding: 0 18px 18px 38px;
}

.wiki-page-card {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.wiki-page-card:hover {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.wiki-page-card__icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-mask-image: var(--wiki-page-card-icon);
  mask-image: var(--wiki-page-card-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.wiki-page-card__title {
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
}

.wiki-page-card__arrow {
  width: 18px;
  height: 18px;
  position: relative;
  opacity: 0.78;
}

.wiki-page-card__arrow::before,
.wiki-page-card__arrow::after {
  content: '';
  position: absolute;
}

.wiki-page-card__arrow::before {
  width: 8px;
  height: 8px;
  top: 4px;
  left: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.wiki-page-card__arrow::after {
  display: none;
}

.wiki-figure {
  justify-items: center;
}

.wiki-figure--sized {
  width: fit-content;
  max-width: 100%;
}

.wiki-figure figcaption {
  width: 100%;
  text-align: center;
}

.wiki-figure img,
.wiki-inline-image,
.wiki-image-lightbox__image {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

@media (min-width: 1341px) {
  .wiki-layout {
    --wiki-sidebar-shift: -75px;
    --wiki-article-balance: -38px;
    grid-template-columns: 242px minmax(0, 940px) 192px;
    gap: 30px;
    width: min(1520px, calc(100% - 66px));
    margin-left: max(52px, calc((100vw - 1520px) / 2 + 46px));
    margin-right: auto;
  }

  .wiki-content {
    max-width: 940px;
    transform: translateX(var(--wiki-article-balance));
  }

  .wiki-sidebar {
    transform: translateX(var(--wiki-sidebar-shift));
  }
}

/* Admin wiki workspace controls */
@media (min-width: 1341px) {
  .admin-wiki-layout:not(.is-preview-full) {
    grid-template-columns: 280px minmax(0, 1fr) minmax(320px, var(--wiki-editor-preview-width, 430px));
  }

  .admin-wiki-layout.is-tree-collapsed:not(.is-preview-full) {
    grid-template-columns: 64px minmax(0, 1fr) minmax(320px, var(--wiki-editor-preview-width, 430px));
  }

  .admin-wiki-layout.is-editor-preview-detached:not(.is-preview-full) {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .admin-wiki-layout.is-tree-collapsed.is-editor-preview-detached:not(.is-preview-full) {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

.admin-wiki-layout:not(.is-preview-full) .admin-wiki-column--preview {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.admin-wiki-layout.is-editor-preview-detached .admin-wiki-column--preview {
  display: none;
}

.admin-wiki-layout.is-preview-full .admin-wiki-column--preview {
  display: block;
}

.admin-wiki-editor-preview-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--wiki-accent, #9fe6ff) 11%, rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.admin-wiki-editor-preview-toolbar span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 1101px) {
  .admin-wiki-settings-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, var(--wiki-settings-preview-width, 430px));
    align-items: start;
  }
}

.admin-wiki-settings-grid.is-preview-detached {
  grid-template-columns: minmax(0, 1fr);
}

.admin-wiki-settings-grid.is-preview-detached .admin-wiki-settings-preview-shell {
  display: none;
}

.admin-wiki-settings-preview-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.admin-wiki-preview-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.admin-wiki-preview-toolbar.is-detached {
  grid-template-columns: auto minmax(0, 1fr);
  background: color-mix(in srgb, var(--wiki-accent, #9fe6ff) 11%, rgba(255, 255, 255, 0.035));
}

.admin-wiki-preview-toolbar__status {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.admin-wiki-settings-preview-card {
  position: sticky;
  top: 98px;
}

.admin-wiki-settings-preview-resizer,
.admin-wiki-editor-preview-resizer {
  position: sticky;
  top: 98px;
  z-index: 5;
  width: 20px;
  height: calc(100vh - 126px);
  min-height: 240px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(159, 230, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.055);
  cursor: ew-resize;
  opacity: 1;
  transition: background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.admin-wiki-settings-preview-resizer span,
.admin-wiki-editor-preview-resizer span {
  width: 3px;
  height: 86px;
  display: block;
  margin: auto;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    -5px 0 0 rgba(255, 255, 255, 0.28),
    5px 0 0 rgba(255, 255, 255, 0.28);
}

.admin-wiki-settings-preview-resizer:hover,
.admin-wiki-settings-preview-resizer:focus-visible,
.admin-wiki-editor-preview-resizer:hover,
.admin-wiki-editor-preview-resizer:focus-visible,
body.is-resizing-wiki-preview .admin-wiki-settings-preview-resizer,
body.is-resizing-wiki-preview .admin-wiki-editor-preview-resizer {
  opacity: 1;
  background: color-mix(in srgb, var(--wiki-accent, #9fe6ff) 42%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wiki-accent, #9fe6ff) 28%, transparent);
  outline: none;
}

body.is-resizing-wiki-preview,
body.is-resizing-wiki-preview * {
  cursor: ew-resize !important;
  user-select: none;
}

/* MineWeb landing */
body.landing-redesign-page {
  --mw-bg: #111111;
  --mw-surface: #212121;
  --mw-surface-2: #282828;
  --mw-text: #eeeeee;
  --mw-muted: #a4a4a4;
  --mw-line: #464646;
  --mw-blue: #009dff;
  --mw-good: #00ff11;
  --mw-danger: #ff1f1f;
  background:
    linear-gradient(180deg, #111 0, #111 72%, #191919 100%);
  color: var(--mw-text);
  font-family: Montserrat, "Montserrat Alternates", Inter, Segoe UI, Arial, sans-serif;
}

body.landing-redesign-page,
body.landing-redesign-page * {
  min-width: 0;
}

body.landing-redesign-page [data-reveal] {
  animation: landingRevealFallback .72s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms) both;
}

@keyframes landingRevealFallback {
  from {
    opacity: 0;
    transform: translate3d(var(--reveal-translate-x, 0), var(--reveal-translate-y, 34px), 0) scale(var(--reveal-scale, .985));
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

body.landing-redesign-page [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

body.landing-redesign-page .site-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 0;
  background: transparent;
}

body.landing-redesign-page .site-header::before {
  display: none;
}

body.landing-redesign-page .site-header__brand {
  gap: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
}

body.landing-redesign-page .site-header__logo {
  width: 53px;
  height: 51px;
  filter: none;
}

body.landing-redesign-page .site-header__auth #login-btn.login-pill-btn {
  min-height: 58px;
  padding: 12px 24px;
  border: 4px solid var(--mw-text);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  gap: 6px;
  color: var(--mw-text);
  font-size: 24px;
  font-weight: 800;
}

body.landing-redesign-page .site-header__auth #login-btn.login-pill-btn img {
  width: 41px;
  height: 41px;
  filter: none;
}

.landing-hero {
  position: relative;
  height: clamp(680px, 86svh, 980px);
  min-height: 680px;
  overflow: hidden;
  border-radius: 0 0 100px 100px;
  background: #353434;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 44%, rgba(17, 17, 17, 0.96) 96%),
    rgba(0, 0, 0, 0.08);
}

.landing-hero__content {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(220px, 29vh, 310px);
  display: grid;
  justify-items: start;
  gap: 28px;
}

.landing-hero__content h1,
.landing-hero__content p,
.landing-section h2,
.landing-feature h3 {
  letter-spacing: 0;
}

.landing-hero__content h1 {
  width: min(847px, 100%);
  margin: 0;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.05;
  font-weight: 800;
}

.landing-hero__pill {
  min-height: 67px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 52px 19px;
  border-radius: 999px;
  background: linear-gradient(112deg, #88001e 4%, #ff1010 103%);
  color: var(--mw-text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  white-space: nowrap;
}

.landing-hero__content p {
  margin: 0;
  width: min(847px, 100%);
  font-size: clamp(28px, 3.7vw, 40px);
  line-height: 1.06;
  font-weight: 800;
}

.landing-main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 0;
}

.landing-section {
  position: relative;
  margin: 0 0 152px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.landing-section h2 {
  margin: 0 0 72px;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.08;
  text-align: center;
  font-weight: 800;
}

.landing-age {
  min-height: 137px;
  display: grid;
  place-items: center;
  margin-bottom: 176px;
}

.landing-age__line,
.landing-status__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0, rgba(255,255,255,.35) 26%, transparent 42%, transparent 58%, rgba(255,255,255,.35) 74%, transparent 100%);
}

.landing-age__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.landing-age__digits {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: baseline;
  gap: 10px;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  font-weight: 950;
  color: #fff;
}

.landing-age__digits b {
  font-weight: 900;
}

.landing-age__labels {
  width: 354px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  color: var(--mw-muted);
  font-size: 14px;
}

.landing-age__labels span {
  text-align: center;
}

.landing-age__content p {
  margin: 8px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
}

.landing-welcome {
  display: grid;
  place-items: center;
  margin-bottom: 164px;
}

.landing-welcome p {
  width: min(1096px, 100%);
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  text-align: left;
  font-weight: 800;
}

.landing-welcome span {
  color: var(--mw-blue);
}

.landing-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 76px;
  margin-bottom: 344px;
}

.landing-status__line {
  position: static;
  height: 4px;
  background: rgba(255,255,255,.32);
}

.landing-status__state {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 800;
  white-space: nowrap;
}

.landing-status__dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--mw-muted);
  box-shadow: 0 0 0 0 rgba(164,164,164,.35);
  animation: landingStatusPulse 1.65s ease-in-out infinite;
}

.landing-status__state.is-online .landing-status__dot {
  background: var(--mw-good);
  box-shadow: 0 0 0 0 rgba(0,255,17,.42);
}

.landing-status__state.is-offline .landing-status__dot {
  background: var(--mw-danger);
  box-shadow: 0 0 0 0 rgba(255,31,31,.46);
}

@keyframes landingStatusPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 currentColor; }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.landing-features {
  margin-bottom: 186px;
}

.landing-features h2 {
  margin-bottom: 72px;
  font-size: clamp(28px, 3.4vw, 36px);
  text-align: left;
}

.landing-features__grid {
  display: grid;
  gap: 72px 25px;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .82fr);
}

.landing-feature {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 50px;
  display: grid;
  align-items: start;
  padding: 35px 50px 40px;
  isolation: isolate;
}

.landing-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.landing-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,.08));
}

.landing-feature h3 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.05;
  font-weight: 900;
}

.landing-feature p {
  width: min(100%, 513px);
  margin: 0;
  color: var(--mw-text);
  font-size: 18px;
  line-height: 1.22;
  font-weight: 600;
  text-align: justify;
}

.landing-feature--plugins {
  background: #1b6bfe;
}

.landing-feature--plugins img {
  left: auto;
  right: -78px;
  width: 55%;
  transform: rotate(-10deg) scale(1.16);
  opacity: .42;
}

.landing-feature--plugins::after {
  background:
    linear-gradient(180deg, rgba(27,107,254,.12), rgba(27,107,254,.22)),
    url('/sprites/feature-blue-texture.svg') left bottom / 100% 45% no-repeat;
}

.landing-feature--lore {
  border: 1px solid var(--mw-line);
  background: #111;
}

.landing-feature--lore::after {
  background: linear-gradient(135deg, rgba(255,255,255,.04), transparent 58%);
}

.landing-feature--world {
  background: var(--mw-text);
  color: #111;
}

.landing-feature--world::after {
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
}

.landing-feature--world h3,
.landing-feature--world p {
  color: #111;
}

.landing-discord {
  margin-bottom: 156px;
}

.landing-discord__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 625px);
  align-items: center;
  gap: 52px;
}

.landing-discord__row > p {
  width: min(577px, 100%);
  margin: 0 auto;
  color: #fff;
  font-size: 24px;
  line-height: 1.18;
  text-align: center;
  font-weight: 800;
}

.landing-discord__card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 50px;
  background: #3e4bd3;
  color: #fff;
  text-decoration: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  align-items: center;
  gap: 20px;
  padding: 40px 52px;
}

.landing-discord__card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 134px;
  background: url('/sprites/discord-wave.svg') center bottom / cover no-repeat;
  opacity: .8;
}

.landing-discord__card img,
.landing-discord__card span,
.landing-discord__card b {
  position: relative;
  z-index: 1;
}

.landing-discord__card img {
  width: 65px;
  height: 49px;
}

.landing-discord__card span {
  min-width: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
}

.landing-discord__card b {
  grid-column: 2;
  width: max-content;
  margin-top: 28px;
  justify-self: end;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--mw-text);
  color: #111;
  font-size: 18px;
  line-height: 1;
}

body.landing-redesign-page .landing-carousel {
  margin-bottom: 156px;
}

body.landing-redesign-page .landing-carousel h2 {
  margin-bottom: 56px;
  font-size: 36px;
}

body.landing-redesign-page .mw-gallery {
  width: min(100%, 1010px) !important;
}

body.landing-redesign-page .mw-gallery__slide {
  width: clamp(520px, 52vw, 668px) !important;
  border-radius: 20px !important;
}

body.landing-redesign-page .mw-gallery__slide img {
  aspect-ratio: 668 / 354 !important;
  border-radius: 20px !important;
}

body.landing-redesign-page .mw-gallery__counter {
  color: #919191;
  font-size: 20px;
  font-weight: 800;
}

body.landing-redesign-page .landing-faq {
  margin-bottom: 180px;
}

body.landing-redesign-page .landing-faq h2 {
  margin-bottom: 72px;
  font-size: 40px;
  text-align: left;
}

body.landing-redesign-page .landing-faq__list {
  gap: 40px;
}

body.landing-redesign-page .landing-faq__item {
  border-radius: 12px;
  background: var(--mw-surface);
  overflow: hidden;
}

body.landing-redesign-page .landing-faq__q {
  min-height: 64px;
  padding: 12px 20px 12px 84px;
  color: var(--mw-text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

body.landing-redesign-page .landing-faq__arrow {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--mw-text);
  font-size: 24px;
  line-height: 1;
}

body.landing-redesign-page .landing-faq__q.is-open .landing-faq__arrow {
  transform: rotate(45deg);
}

body.landing-redesign-page .landing-faq__a {
  color: rgba(238,238,238,.78);
  font-size: 17px;
  line-height: 1.5;
  padding-inline: 84px 48px;
}

body.landing-redesign-page .landing-faq__a.is-open {
  padding: 0 84px 22px;
}

.landing-social {
  margin-bottom: 100px;
}

.landing-social h2 {
  margin-bottom: 72px;
}

.landing-social__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 300px));
  justify-content: center;
  gap: 40px;
}

.landing-social__link {
  min-height: 100px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 25px;
  overflow: hidden;
  position: relative;
  font-size: 24px;
  font-weight: 900;
}

.landing-social__link::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .9;
  pointer-events: none;
}

.landing-social__link img,
.landing-social__link span {
  position: relative;
  z-index: 1;
}

.landing-social__link img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.landing-social__link--youtube { background: #ff0000; }
.landing-social__link--youtube::after { background: url('/sprites/youtube-card.svg') center / cover no-repeat; }
.landing-social__link--boosty { background: #ff6620; }
.landing-social__link--boosty::after { background: url('/sprites/boosty-card.svg') center / cover no-repeat; }
.landing-social__link--telegram { background: #27a5e5; }
.landing-social__link--telegram::after { background: url('/sprites/telegram-card.svg') center / cover no-repeat; }
.landing-social__link--discord { background: #3e4bd3; }
.landing-social__link--discord::after { background: url('/sprites/discord-wave.svg') center bottom / cover no-repeat; opacity: .45; }

.landing-footer-v2 {
  width: 100%;
  min-height: 520px;
  border-radius: 50px 50px 0 0;
  background: var(--mw-surface);
  padding: 46px max(24px, calc((100vw - 1320px) / 2)) 58px;
  color: var(--mw-text);
}

.landing-footer-v2__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 48px;
}

.landing-footer-v2__logo img {
  width: 92px;
  height: 89px;
}

.landing-footer-v2__grid {
  margin-top: 112px;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, .9fr) minmax(300px, .85fr);
  gap: clamp(48px, 10vw, 276px);
  align-items: start;
}

.landing-footer-v2__contacts,
.landing-footer-v2__docs,
.landing-footer-v2__owner {
  display: grid;
  gap: 20px;
}

.landing-footer-v2 a {
  color: var(--mw-text);
}

.landing-footer-v2__contacts a {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
}

.landing-footer-v2__contacts img {
  width: 38px;
  height: 36px;
}

.landing-footer-v2__contacts p {
  margin: 31px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.landing-footer-v2__contacts small {
  color: rgba(238,238,238,.78);
  font-size: 14px;
  line-height: 1.35;
}

.landing-footer-v2__docs a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 20px;
}

.landing-footer-v2__icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-footer-v2__icons img {
  width: 50px;
  height: 50px;
}

.landing-footer-v2__owner p {
  margin: 21px 0 0;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 600;
}

.landing-mascot {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(33,33,33,.86), rgba(17,17,17,1));
}

.landing-mascot__character {
  position: absolute;
  left: calc(50% - 340px);
  bottom: -40px;
  width: min(720px, 76vw);
  max-height: 620px;
  object-fit: contain;
  object-position: bottom center;
}

.landing-mascot__bubble {
  position: absolute;
  left: calc(50% + 258px);
  bottom: 158px;
  width: min(445px, calc(100% - 40px));
  min-height: 156px;
  display: grid;
  place-items: center;
  padding: 24px 32px;
  border-radius: 12px;
  background: rgba(99,99,99,.92);
  color: var(--mw-text);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 900;
}

.admin-site-settings {
  display: grid;
  gap: 16px;
}

.admin-site-settings__field {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.admin-site-settings__actions {
  align-items: center;
}

@media (max-width: 1240px) {
  .landing-features__grid,
  .landing-discord__row,
  .landing-footer-v2__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .landing-social__grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }

  .landing-feature--plugins img {
    right: -120px;
  }

  .landing-footer-v2__grid {
    margin-top: 64px;
  }
}

@media (max-width: 760px) {
  body.landing-redesign-page .site-header {
    width: calc(100% - 28px);
    padding-top: 20px;
    gap: 8px;
  }

  body.landing-redesign-page .site-header__brand {
    gap: 10px;
    font-size: 18px;
  }

  body.landing-redesign-page .site-header__logo {
    width: 38px;
    height: 37px;
  }

  body.landing-redesign-page .site-header__auth #login-btn.login-pill-btn {
    width: 44px;
    min-height: 42px;
    padding: 0;
    border-width: 3px;
    font-size: 16px;
  }

  body.landing-redesign-page .site-header__auth #login-btn.login-pill-btn span {
    display: none;
  }

  body.landing-redesign-page .site-header__auth #login-btn.login-pill-btn img {
    width: 22px;
    height: 22px;
  }

  .landing-hero {
    height: 82svh;
    min-height: 620px;
    border-radius: 0 0 42px 42px;
  }

  .landing-hero__content {
    width: calc(100% - 64px);
    margin-left: 14px;
    margin-right: auto;
    padding-top: 180px;
    gap: 18px;
  }

  .landing-hero__content h1,
  .landing-hero__content p,
  .landing-welcome p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .landing-hero__content h1 {
    font-size: clamp(24px, 6.8vw, 28px);
  }

  .landing-hero__content p {
    font-size: clamp(20px, 6vw, 23px);
  }

  .landing-hero__pill {
    min-height: 50px;
    padding: 14px 24px;
  }

  .landing-main {
    width: calc(100% - 28px);
    padding-top: 54px;
  }

  .landing-section {
    margin-bottom: 96px;
  }

  .landing-age {
    margin-bottom: 106px;
  }

  .landing-age__digits {
    gap: 6px;
  }

  .landing-welcome p {
    text-align: left;
    width: min(100%, 340px);
    font-size: clamp(19px, 6vw, 23px);
  }

  .landing-status {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 130px;
  }

  .landing-status__line {
    display: none;
  }

  .landing-status__state {
    min-width: 0;
  }

  .landing-features h2,
  body.landing-redesign-page .landing-faq h2 {
    text-align: center;
  }

  .landing-feature {
    min-height: auto;
    border-radius: 26px;
    padding: 28px 24px;
  }

  .landing-feature p {
    font-size: 16px;
    text-align: left;
  }

  .landing-discord__row > p {
    font-size: 18px;
  }

  .landing-discord__card {
    min-height: 190px;
    border-radius: 28px;
    padding: 30px 24px;
  }

  .landing-discord__card span {
    font-size: 24px;
  }

  .landing-discord__card b {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 14px;
  }

  body.landing-redesign-page .mw-gallery {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  }

  body.landing-redesign-page .mw-gallery__slide {
    width: calc(100vw - 136px) !important;
    min-width: calc(100vw - 136px) !important;
  }

  body.landing-redesign-page .landing-faq__q {
    padding: 14px 18px;
  }

  body.landing-redesign-page .landing-faq__a,
  body.landing-redesign-page .landing-faq__a.is-open {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-social__grid {
    grid-template-columns: 1fr;
  }

  .landing-social__link {
    justify-content: center;
  }

  .landing-footer-v2 {
    border-radius: 28px 28px 0 0;
    padding: 32px 20px 42px;
  }

  .landing-footer-v2__logo {
    gap: 16px;
    font-size: 32px;
  }

  .landing-footer-v2__logo img {
    width: 62px;
    height: 60px;
  }

  .landing-footer-v2__contacts a,
  .landing-footer-v2__contacts p {
    font-size: 18px;
  }

  .landing-mascot {
    min-height: 360px;
  }

  .landing-mascot__character {
    left: -56px;
    width: min(560px, 118vw);
  }

  .landing-mascot__bubble {
    left: auto;
    right: 18px;
    bottom: 62px;
    width: min(250px, 62vw);
    min-height: 110px;
    font-size: 20px;
  }
}

.admin-wiki-card--tree-collapsed {
  position: sticky;
  top: 98px;
  min-height: 230px;
  padding: 8px;
}

.admin-wiki-tree-rail {
  width: 100%;
  min-height: 214px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 12px 8px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.admin-wiki-tree-rail:hover,
.admin-wiki-tree-rail:focus-visible {
  background: rgba(159, 230, 255, 0.08);
  color: #fff;
  outline: none;
}

.admin-wiki-tree-rail img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.admin-wiki-tree-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

body.admin-wiki-live-preview-page {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  background: #090909;
  color: #f3f3f3;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.admin-wiki-live-preview-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.admin-wiki-live-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 0;
}

.admin-wiki-live-preview-head h1 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}

.admin-wiki-live-preview-head span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  line-height: 1.5;
}

body.admin-wiki-live-preview-page .admin-wiki-card--preview {
  position: static;
  max-height: none;
  overflow: visible;
}

body.admin-wiki-live-preview-page .admin-wiki-settings-preview-card {
  padding-left: 16px;
}

body.admin-wiki-live-preview-page .admin-wiki-settings-preview-resizer {
  display: none;
}

@media (max-width: 1100px) {
  .admin-wiki-preview-toolbar,
  .admin-wiki-preview-toolbar.is-detached,
  .admin-wiki-editor-preview-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-wiki-layout:not(.is-preview-full) .admin-wiki-column--preview {
    grid-template-columns: 1fr;
  }

  .admin-wiki-settings-preview-shell {
    grid-template-columns: 1fr;
  }

  .admin-wiki-settings-preview-resizer,
  .admin-wiki-editor-preview-resizer {
    display: none;
  }

  .admin-wiki-settings-preview-card {
    padding-left: 16px;
  }
}

/* ===== MineWeb exact landing ===== */
html {
  --landing-page-scale: 1;
}

body.landing-exact {
  margin: 0;
  background: #111111;
  color: #eeeeee;
  font-family: Montserrat, "Montserrat Alternates", Inter, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}

body.landing-exact,
body.landing-exact * {
  box-sizing: border-box;
  letter-spacing: 0;
}

body.landing-exact [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

.landing-page-stage {
  position: relative;
  width: 100%;
  height: 6768px;
  overflow: hidden;
  background: #111111;
}

.landing-page {
  background: #111111;
  width: 1920px;
  height: 7500px;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -960px;
  overflow: hidden;
  transform: scale(var(--landing-page-scale));
  transform-origin: top center;
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page p {
  margin: 0;
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-page .ellipse-20,
.landing-page .ellipse-21 {
  background: #d9d9d9;
  border-radius: 50%;
  width: 120px;
  height: 119px;
  position: absolute;
  filter: blur(93.5px);
  pointer-events: none;
}

.landing-page .ellipse-20 {
  left: 196px;
  top: 3946px;
}

.landing-page .ellipse-21 {
  left: 852px;
  top: 3711px;
}

.landing-page .rectangle-121 {
  width: 2028px;
  height: 2348px;
  position: absolute;
  left: -81px;
  top: 5524px;
  background:
    linear-gradient(0deg, rgba(17, 17, 17, 0) 0%, #111111 100%),
    rgba(31, 31, 31, 0.5);
  overflow: hidden;
}

.landing-page .rectangle-121::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/sprites/pattern.webp") 0 0 / 160px 160px repeat;
  opacity: 0.05;
}

.landing-page .rectangle-20 {
  border-radius: 0 0 100px 100px;
  width: 1920px;
  height: 1171px;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover;
  background: #353434;
}

.landing-page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1171px;
  border-radius: 0 0 100px 100px;
  background: linear-gradient(180.42deg, rgba(0, 0, 0, 0.05) 0%, #111111 100%);
  z-index: 1;
  pointer-events: none;
}

.landing-page .landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1320px;
  position: absolute;
  left: 300px;
  top: 40px;
  z-index: 3;
}

.landing-page .landing-brand {
  display: flex;
  gap: 20px;
  align-items: center;
}

.landing-page .group-212 {
  width: 53px;
  height: 51.16px;
  display: block;
}

.landing-page .mine-web2 {
  color: #ffffff;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.landing-page .landing-auth-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.landing-page .landing-login {
  border-radius: 100px;
  border: 4px solid #eeeeee;
  padding: 12px 24px;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  color: #eeeeee;
}

.landing-page .vector {
  width: 41px;
  height: 41px;
  display: block;
}

.landing-page .landing-login__text {
  color: #eeeeee;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.landing-page .avatar-btn {
  width: 64px;
  height: 64px;
}

.landing-page .avatar-btn .topbar__avatar {
  width: 58px;
  height: 58px;
}

.landing-page .profile-menu {
  right: 0;
  top: calc(100% + 14px);
  z-index: 20;
}

.landing-page .landing-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 847px;
  position: absolute;
  left: 300px;
  top: 310px;
  z-index: 2;
}

.landing-page .minecraft {
  color: #eeeeee;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  width: 847px;
  white-space: nowrap;
}

.landing-page .landing-origin-pill {
  background: linear-gradient(94.56deg, #88001e 0%, #ff1010 100%);
  border-radius: 100px;
  padding: 19px 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 335px;
  height: 67px;
}

.landing-page .origins {
  color: #eeeeee;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.landing-page .landing-hero-subtitle {
  color: #eeeeee;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  width: 847px;
}

.landing-page .landing-age {
  width: 1320px;
  height: 137px;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 1246px;
}

.landing-page .group-25 {
  position: absolute;
  left: 0;
  top: 44px;
  width: 1320px;
  height: 4px;
}

.landing-page .group-25::before,
.landing-page .group-25::after {
  content: "";
  position: absolute;
  top: 0;
  width: 421px;
  border-top: 4px solid rgba(255, 255, 255, 0.55);
}

.landing-page .group-25::before {
  left: 0;
}

.landing-page .group-25::after {
  right: 0;
}

.landing-page .landing-age__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 437px;
  position: absolute;
  left: 441px;
  top: 0;
}

.landing-page .group-23 {
  width: 354px;
  height: 88px;
  position: relative;
}

.landing-page ._02-03-07 {
  color: #ffffff;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 0;
  width: 354px;
  white-space: nowrap;
}

.landing-page .landing-age__years-label,
.landing-page .landing-age__months-label,
.landing-page .landing-age__days-label {
  color: #a4a4a4;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  position: absolute;
  top: 67px;
  height: 21px;
}

.landing-page .landing-age__years-label {
  left: 31px;
  width: 43px;
}

.landing-page .landing-age__months-label {
  left: 150px;
  width: 75px;
}

.landing-page .landing-age__days-label {
  left: 292px;
  width: 35px;
}

.landing-page .landing-age__title {
  color: #ffffff;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  width: 437px;
  text-align: center;
}

.landing-page .mine-web-origin {
  color: #ffffff;
  text-align: justify;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 1659px;
  width: 1096px;
}

.landing-page .mine-web-origin-span2 {
  color: #009dff;
}

.landing-page .server-status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  position: absolute;
  left: 50%;
  top: 2082px;
  translate: -50% 0;
  min-width: max-content;
  max-width: 1600px;
  height: 69px;
  z-index: 3;
}

.landing-page .server-status-badge__dot {
  width: 40px;
  height: 40px;
  position: relative;
  flex: 0 0 40px;
}

.landing-page .ellipse-18 {
  background: #a4a4a4;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  translate: -50% -50%;
  animation: server-status-dot-pulse 1.45s ease-in-out infinite;
}

.landing-page .ellipse-19 {
  background: #a4a4a4;
  border-radius: 50%;
  opacity: 0.4;
  width: 40px;
  height: 40px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  animation: server-status-halo-pulse 1.45s ease-in-out infinite;
}

.landing-page .server-status-badge.is-online .ellipse-18,
.landing-page .server-status-badge.is-online .ellipse-19 {
  background: #00ff11;
}

.landing-page .server-status-badge.is-offline .ellipse-18,
.landing-page .server-status-badge.is-offline .ellipse-19 {
  background: #ff1010;
}

.landing-page .server-status-badge.is-loading .ellipse-18,
.landing-page .server-status-badge.is-loading .ellipse-19 {
  background: #a4a4a4;
}

@keyframes server-status-dot-pulse {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1); }
}

@keyframes server-status-halo-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.28; }
  50% { transform: scale(1.16); opacity: 0.5; }
}

.landing-page ._12 {
  color: #ffffff;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  position: static;
  min-width: 0;
  height: auto;
  white-space: nowrap;
  text-align: center;
}

.landing-page .line-11,
.landing-page .line-112 {
  border-top: 4px solid #ffffff;
  width: 421px;
  height: 0;
  position: absolute;
  top: 2116px;
}

.landing-page .line-11 {
  left: 1199px;
}

.landing-page .line-112 {
  left: 300px;
}

.landing-page .mine-web3 {
  color: #eeeeee;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  position: absolute;
  left: 300px;
  top: 2558px;
}

.landing-page .landing-features {
  display: flex;
  flex-direction: column;
  gap: 72px;
  width: 1320px;
  position: absolute;
  left: 300px;
  top: 2682px;
}

.landing-page .landing-features-row-top,
.landing-page .landing-features-row-bottom {
  width: 1320px;
  height: 300px;
  position: relative;
}

.landing-page .feature-card-races {
  border-radius: 50px;
  padding: 35px 50px 40px;
  width: 758px;
  height: 300px;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  overflow: clip;
  background: #111111;
  clip-path: inset(0 round 50px);
  -webkit-clip-path: inset(0 round 50px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  contain: paint;
  isolation: isolate;
}

.landing-page .feature-card-races::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/sprites/feature-races.webp") center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.landing-page .feature-card-races,
.landing-page .feature-card-plugins,
.landing-page .feature-card-personal-lore,
.landing-page .feature-card-world-lore {
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
}

.landing-page .feature-card__text,
.landing-page .feature-card-plugins__text,
.landing-page .feature-card-personal-lore__text,
.landing-page .feature-card-world-lore__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.landing-page .feature-card__text {
  width: 484px;
}

.landing-page .feature-card__title-races,
.landing-page .feature-card-personal-lore__title,
.landing-page .feature-card-world-lore__title {
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.landing-page .feature-card__title-races,
.landing-page .feature-card-personal-lore__title {
  color: #eeeeee;
}

.landing-page .feature-card__description-races,
.landing-page .feature-card-plugins__description,
.landing-page .feature-card-personal-lore__description,
.landing-page .feature-card-world-lore__description {
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.08;
}

.landing-page .feature-card__description-races,
.landing-page .feature-card-personal-lore__description {
  color: #eeeeee;
  text-align: justify;
}

.landing-page .feature-card__description-races {
  width: 484px;
}

.landing-page .feature-card-plugins {
  background: #1b6bfe;
  border-radius: 50px;
  width: 534px;
  height: 300px;
  position: absolute;
  left: 786px;
  top: 0;
  overflow: hidden;
}

.landing-page .feature-card-plugins__inner {
  padding: 35px 37px 39px 50px;
  width: 534px;
  height: 300px;
  position: absolute;
  left: 0;
  top: 0;
}

.landing-page .feature-card-plugins__texture {
  position: absolute;
  left: -74px;
  top: 152px;
  width: 905px;
  height: 297px;
  object-fit: fill;
  opacity: 1;
}

.landing-page .feature-card-plugins::after {
  display: none;
}

.landing-page .feature-card-plugins__title {
  color: #eeeeee;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  width: 505px;
  height: 38px;
}

.landing-page .feature-card-plugins__description {
  color: #eeeeee;
  width: 404px;
}

.landing-page .feature-card-personal-lore {
  padding: 35px 80px 47px 50px;
  width: 649px;
  height: 300px;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  border-radius: 50px;
  border: 1px solid #464646;
  background: #111111;
}

.landing-page .feature-card-personal-lore__mask {
  display: none;
}

.landing-page .feature-card-personal-lore__title,
.landing-page .feature-card-personal-lore__description {
  width: 454px;
}

.landing-page .feature-card-world-lore {
  background: #eeeeee;
  border-radius: 50px;
  width: 646px;
  height: 300px;
  position: absolute;
  left: 674px;
  top: 0;
  overflow: hidden;
}

.landing-page .feature-card-world-lore__inner {
  padding: 40px 50px;
  width: 646px;
  height: 300px;
  position: relative;
}

.landing-page .feature-card-world-lore__mask {
  position: absolute;
  inset: 0;
  width: 646px;
  height: 300px;
}

.landing-page .feature-card-world-lore__text {
  width: 513px;
}

.landing-page .feature-card-world-lore__title,
.landing-page .feature-card-world-lore__description {
  color: #111111;
  width: 513px;
}

.landing-page .discord2 {
  color: #ffffff;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 3625px;
  width: 786px;
  height: 86px;
  text-align: left;
}

.landing-page .landing-discord__description {
  color: #ffffff;
  text-align: center;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
  position: absolute;
  left: 296px;
  top: 3875px;
  width: 577px;
  height: 143px;
}

.landing-page .landing-discord-card {
  background: #3e4bd3;
  border-radius: 50px;
  width: 625px;
  height: 220px;
  position: absolute;
  left: 995px;
  top: 3846px;
  overflow: hidden;
  display: block;
}

.landing-page .vector2,
.landing-page .vector3 {
  width: 625px;
  height: 134px;
  position: absolute;
  left: 0;
  top: 86px;
  object-fit: cover;
}

.landing-page .vector3 {
  opacity: 0.65;
}

.landing-page .landing-discord-card__header {
  display: flex;
  gap: 20px;
  align-items: center;
  position: absolute;
  left: 52px;
  top: 40px;
}

.landing-page .landing-discord-card__icon {
  width: 65px;
  height: 49px;
}

.landing-page .discord {
  color: #ffffff;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.landing-page .landing-discord-card__button {
  background: #eeeeee;
  border-radius: 9999px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  position: absolute;
  left: 371px;
  top: 142px;
}

.landing-page .landing-discord-card__button-text {
  color: #111111;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.landing-page .landing-gallery__title {
  color: #ffffff;
  font-family: "IBM Plex Sans KR", Inter, Segoe UI, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 4337px;
  width: 149px;
  height: 53px;
  text-align: center;
}

body.landing-exact .landing-page .mw-gallery {
  position: absolute !important;
  left: 300px !important;
  top: 4439px !important;
  width: 1320px !important;
  height: 354px !important;
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.landing-exact .landing-page .mw-gallery__viewport {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1320px !important;
  height: 354px !important;
  overflow: hidden !important;
}

body.landing-exact .landing-page .mw-gallery__viewport::before,
body.landing-exact .landing-page .mw-gallery__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 3;
  width: 310px;
  height: 354px;
  pointer-events: none;
}

body.landing-exact .landing-page .mw-gallery__viewport::before {
  left: 0;
  background: linear-gradient(90deg, #111111 0%, rgba(17, 17, 17, 0.9) 24%, rgba(17, 17, 17, 0) 100%);
}

body.landing-exact .landing-page .mw-gallery__viewport::after {
  right: 0;
  background: linear-gradient(270deg, #111111 0%, rgba(17, 17, 17, 0.9) 24%, rgba(17, 17, 17, 0) 100%);
}

body.landing-exact .landing-page .mw-gallery__track {
  height: 354px !important;
  display: flex !important;
  align-items: center !important;
  gap: 35px !important;
  will-change: transform;
}

body.landing-exact .landing-page .mw-gallery__slide {
  flex: 0 0 284px !important;
  width: 284px !important;
  height: 268px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  opacity: 0.035 !important;
  transform: none !important;
  background: #282828 !important;
  filter: brightness(0.56) saturate(0.85) !important;
  transition: flex-basis 0.2s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

body.landing-exact .landing-page .mw-gallery__slide.is-neighbor {
  opacity: 0.1 !important;
}

body.landing-exact .landing-page .mw-gallery__slide.is-active {
  flex-basis: 668px !important;
  width: 668px !important;
  height: 354px !important;
  opacity: 1 !important;
  filter: none !important;
}

body.landing-exact .landing-page .mw-gallery__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.86) !important;
  pointer-events: none;
  transition: background 0.2s ease;
}

body.landing-exact .landing-page .mw-gallery__slide.is-prev::after {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.72) 42%, rgba(17, 17, 17, 0.28) 100%) !important;
}

body.landing-exact .landing-page .mw-gallery__slide.is-next::after {
  background: linear-gradient(270deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.72) 42%, rgba(17, 17, 17, 0.28) 100%) !important;
}

body.landing-exact .landing-page .mw-gallery__slide.is-active::after {
  background: transparent !important;
}

body.landing-exact .landing-page .mw-gallery__slide img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  border-radius: 20px !important;
}

body.landing-exact .landing-page .mw-gallery__arrow {
  position: absolute !important;
  z-index: 4 !important;
  top: 152px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: rgba(17, 17, 17, 0.96) !important;
  color: #ffffff !important;
  font-family: "IBM Plex Sans KR", Inter, Segoe UI, Arial, sans-serif !important;
  font-size: 0 !important;
  line-height: 50px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(238, 238, 238, 0.08), 0 10px 26px rgba(0, 0, 0, 0.22);
}

body.landing-exact .landing-page .mw-gallery__arrow::before {
  content: "";
  display: block !important;
  width: 15px;
  height: 15px;
  border-top: 4px solid #ffffff;
  border-right: 4px solid #ffffff;
  border-radius: 2px;
}

body.landing-exact .landing-page .mw-gallery__arrow--left {
  left: 117px !important;
}

body.landing-exact .landing-page .mw-gallery__arrow--left::before {
  margin-left: 5px;
  transform: rotate(-135deg);
}

body.landing-exact .landing-page .mw-gallery__arrow--right {
  left: 1140px !important;
}

body.landing-exact .landing-page .mw-gallery__arrow--right::before {
  margin-right: 5px;
  transform: rotate(45deg);
}

.landing-page .landing-gallery__counter-wrap {
  color: #919191;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  left: 933px;
  top: 4819px;
  min-width: 70px;
  height: 23px;
  text-align: center;
}

body.landing-exact .landing-page .mw-gallery__counter {
  color: #919191 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.landing-page .faq {
  width: 1320px;
  height: 554px;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 5028px;
}

.landing-page .faq2 {
  color: #ffffff;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  left: 0;
  top: 0;
}

.landing-page .landing-faq__items {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 1320px;
  position: absolute;
  left: 0;
  top: 129px;
}

body.landing-exact .landing-page .landing-faq__item {
  background: #212121 !important;
  border-radius: 12px !important;
  overflow: hidden;
  width: 1320px;
  transition: background 0.18s ease;
}

body.landing-exact .landing-page .landing-faq__q {
  width: 100%;
  min-height: 53px;
  border: 0;
  background: #212121;
  border-radius: 12px;
  padding: 12px 24px 12px 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #eeeeee;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

body.landing-exact .landing-page .landing-faq__q span {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.18;
}

body.landing-exact .landing-page .landing-faq__arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #eeeeee;
  font-size: 24px;
  line-height: 20px;
  display: grid;
  place-items: center;
  transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.landing-exact .landing-page .landing-faq__q.is-open .landing-faq__arrow {
  transform: rotate(45deg);
}

body.landing-exact .landing-page .landing-faq__a {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 84px;
  color: rgba(238, 238, 238, 0.78);
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.24s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.18s ease, padding 0.24s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.landing-exact .landing-page .landing-faq__a.is-open {
  max-height: var(--faq-answer-height, 220px);
  padding: 8px 84px 38px;
  opacity: 1;
  transform: translateY(0);
}

.landing-page .landing-communities__title {
  color: #ffffff;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 5851px;
  width: 1320px;
  height: 86px;
  text-align: center;
}

.landing-page .community-card {
  width: 300px;
  height: 100px;
  position: absolute;
  top: 6028px;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
}

.landing-page .community-card--youtube {
  left: 421px;
  background: #ff0000;
}

.landing-page .community-card--boosty {
  left: 810px;
  background: #ff6620;
}

.landing-page .community-card--telegram {
  left: 1199px;
  background: #27a5e5;
}

.landing-page .community-card__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 100px;
  padding: 0 24px;
}

.landing-page .community-card__content--youtube {
  gap: 12px;
  padding: 0 24px;
}

.landing-page .community-card__content--boosty {
  gap: 14px;
  padding: 0 24px;
}

.landing-page .community-card__background {
  width: 300px;
  height: 100px;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover;
}

.landing-page .community-card__icon--boosty {
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.landing-page .community-card__icon--telegram {
  width: 52px;
  height: 52px;
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  object-fit: contain;
}

.landing-page .community-card__icon--youtube {
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.landing-page .boosty,
.landing-page .telegram,
.landing-page .you-tube {
  color: #ffffff;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  white-space: nowrap;
}

.landing-page .telegram {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
}

.landing-page .you-tube {
  width: auto;
  height: auto;
}

.landing-page .landing-footer {
  background: #212121;
  border-radius: 50px;
  width: 1920px;
  height: 693px;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 6228px;
  z-index: 2;
}

.landing-page .landing-footer__brand {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  left: 50%;
  translate: -50%;
  top: 46px;
}

.landing-page .landing-footer__logo {
  width: 92.2px;
  height: 89px;
}

.landing-page .mine-web {
  color: #ffffff;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.landing-page .landing-footer__brand .mine-web {
  font-weight: 700;
}

.landing-page .landing-footer__content {
  display: flex;
  gap: 276px;
  align-items: flex-start;
  justify-content: center;
  position: absolute;
  left: 140px;
  top: 262px;
}

.landing-page .landing-footer__info {
  width: 462px;
  height: 196px;
  position: relative;
}

.landing-page .landing-footer__contacts {
  width: 371px;
  height: 92px;
  position: absolute;
  left: 0;
  top: 0;
}

.landing-page .landing-footer__contact {
  display: flex;
  gap: 19px;
  align-items: center;
  position: absolute;
  left: 0;
}

.landing-page .landing-footer__contact--mail {
  top: 0;
  height: 36px;
}

.landing-page .landing-footer__contact--phone {
  top: 56px;
  gap: 20px;
}

.landing-page .landing-footer__contact-icon {
  width: 38px;
  height: 36px;
}

.landing-page .mineweb-04-gmail-com,
.landing-page ._7-939-385-67-89 {
  color: #eeeeee;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.landing-page .landing-footer__copyright {
  width: 462px;
  height: 73px;
  position: absolute;
  left: 0;
  top: 123px;
}

.landing-page .landing-footer__copyright .mineweb {
  color: #eeeeee;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.landing-page .minecraft2,
.landing-page .mojang-microsoft {
  color: #eeeeee;
  font-family: "Montserrat Alternates", Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  left: 0;
}

.landing-page .minecraft2 {
  top: 37px;
}

.landing-page .mojang-microsoft {
  top: 56px;
}

.landing-page .landing-footer__docs {
  width: 317px;
  height: 132px;
  position: relative;
}

.landing-page .landing-footer__doc-link {
  color: #ffffff;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  text-decoration: underline;
  position: absolute;
  left: 0;
  width: 317px;
  white-space: nowrap;
}

.landing-page .landing-footer__doc-link--offer {
  top: 0;
}

.landing-page .landing-footer__doc-link--privacy {
  top: 38px;
}

.landing-page .landing-footer__doc-link--tariffs {
  top: 76px;
}

.landing-page .landing-footer__doc-link--refund {
  top: 114px;
}

.landing-page .landing-footer__social-block {
  width: 309px;
  height: 135px;
  position: relative;
}

.landing-page .landing-footer__socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 309px;
  position: absolute;
  left: 0;
  top: 0;
}

.landing-page .landing-footer__social-icon {
  border-radius: 16px;
  width: 50px;
  height: 50px;
  display: block;
}

.landing-page .landing-character {
  position: absolute;
  left: 589px;
  top: 6848px;
  width: 758px;
  height: 1215px;
  object-fit: contain;
  object-position: top center;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(120px);
  transition: opacity 0.42s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.42s ease;
}

.landing-page .landing-character__bubble {
  width: 529.87px;
  height: 288.26px;
  position: absolute;
  left: 1305px;
  top: 7088px;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transform: translate(24px, 30px) scale(0.96);
  transition: opacity 0.32s ease 0.24s, transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) 0.24s, visibility 0.32s ease 0.24s;
}

.landing-page .landing-character__text {
  color: #eeeeee;
  font-family: Montserrat, Inter, Segoe UI, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  left: 1382.87px;
  top: 7197.26px;
  width: 445px;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transform: translate(20px, 18px);
  transition: opacity 0.28s ease 0.34s, transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) 0.34s, visibility 0.28s ease 0.34s;
}

body.landing-scroll-easter-unlocked .landing-page .landing-character,
body.landing-scroll-easter-unlocked .landing-page .landing-character__bubble,
body.landing-scroll-easter-unlocked .landing-page .landing-character__text {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.landing-exact .mw-lightbox {
  z-index: 5000;
}

/* Profile tickets redesign 2026-05-30 */
body.profile-redesign-page .profile-section-head--tickets {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.profile-redesign-page .profile-section-head--tickets.is-empty {
  display: none;
}

body.profile-redesign-page .profile-section-head--tickets .profile-section-note {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

body.profile-redesign-page .ticket-stage {
  min-height: 0;
}

body.profile-redesign-page .ticket-hub {
  display: grid;
  gap: 0;
}

body.profile-redesign-page .ticket-grid--modern {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

body.profile-redesign-page .ticket-card {
  min-height: 150px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #111;
  box-shadow: none;
}

body.profile-redesign-page .ticket-card:hover,
body.profile-redesign-page .ticket-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024)),
    #111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  outline: none;
}

body.profile-redesign-page .ticket-card.has-unread {
  border-color: rgba(255, 111, 111, 0.34);
}

body.profile-redesign-page .ticket-card--closed {
  border-color: rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(180deg, rgba(130, 130, 130, 0.035), rgba(70, 70, 70, 0.018)),
    #0d0d0d;
  filter: grayscale(1);
  opacity: 0.58;
}

body.profile-redesign-page .ticket-card--closed:hover,
body.profile-redesign-page .ticket-card--closed:focus-visible {
  opacity: 0.74;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(145, 145, 145, 0.045), rgba(80, 80, 80, 0.02)),
    #0d0d0d;
}

body.profile-redesign-page .ticket-card__accent {
  left: 16px;
  right: auto;
  top: 16px;
  width: 7px;
  height: 42px;
  border-radius: 999px;
}

body.profile-redesign-page .ticket-card__head {
  padding-top: 0;
  padding-left: 18px;
  align-items: flex-start;
}

body.profile-redesign-page .ticket-card__identity {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.profile-redesign-page .ticket-card__number {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 850;
}

body.profile-redesign-page .ticket-card__topic {
  color: #fff;
  font-size: 16px;
  line-height: 1.22;
}

body.profile-redesign-page .ticket-card__preview {
  margin-left: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

body.profile-redesign-page .ticket-card__foot {
  margin-left: 18px;
  color: rgba(255, 255, 255, 0.44);
}

body.profile-redesign-page .ticket-status {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

body.profile-redesign-page .ticket-status--open {
  color: #d9f1ff;
  background: rgba(91, 177, 255, 0.13);
}

body.profile-redesign-page .ticket-status--work {
  color: #fff2ca;
  background: rgba(255, 198, 91, 0.13);
}

body.profile-redesign-page .ticket-status--closed {
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.06);
}

body.profile-redesign-page .ticket-unread {
  background: #ff6f6f;
  color: #160909;
}

body.profile-redesign-page .ticket-panel {
  min-height: min(720px, calc(100vh - 150px));
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    #0f0f0f;
  box-shadow: none;
}

body.profile-redesign-page .ticket-panel--create {
  width: min(760px, 100%);
  max-width: 760px;
  min-height: 0;
}

body.profile-redesign-page .ticket-panel--chat {
  grid-template-rows: auto auto minmax(360px, 1fr) auto;
}

body.profile-redesign-page .ticket-panel__head {
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.profile-redesign-page .ticket-panel__head h3 {
  margin-top: 3px;
  font-size: 21px;
  letter-spacing: 0;
}

body.profile-redesign-page .ticket-panel__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

body.profile-redesign-page .ticket-close-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

body.profile-redesign-page .ticket-close-btn:hover,
body.profile-redesign-page .ticket-close-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

body.profile-redesign-page .ticket-close-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

body.profile-redesign-page .ticket-panel__eyebrow {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  letter-spacing: 0.08em;
}

body.profile-redesign-page .ticket-back {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 20px;
  line-height: 1;
}

body.profile-redesign-page .ticket-back:hover,
body.profile-redesign-page .ticket-back:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

body.profile-redesign-page .ticket-panel__meta-line {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

body.profile-redesign-page .ticket-topic-badge {
  min-height: 26px;
  color: #071018;
}

body.profile-redesign-page .ticket-panel__body {
  padding: 20px;
}

body.profile-redesign-page .ticket-panel__body--form {
  gap: 16px;
}

body.profile-redesign-page .ticket-panel__foot {
  padding: 0 20px 20px;
}

body.profile-redesign-page .ticket-field {
  gap: 9px;
  color: rgba(255, 255, 255, 0.66);
}

body.profile-redesign-page .ticket-input,
body.profile-redesign-page .ticket-custom-select__button,
body.profile-redesign-page .ticket-file {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

body.profile-redesign-page .ticket-input:focus,
body.profile-redesign-page .ticket-custom-select__button:focus-visible,
body.profile-redesign-page .ticket-file:focus-within {
  border-color: rgba(240, 207, 114, 0.36);
  box-shadow: 0 0 0 3px rgba(240, 207, 114, 0.08);
}

body.profile-redesign-page .ticket-input--textarea {
  min-height: 150px;
}

body.profile-redesign-page .ticket-file--wide {
  width: 100%;
  justify-content: flex-start;
}

body.profile-redesign-page .ticket-messages {
  gap: 14px;
  padding: 14px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(0, 0, 0, 0.08));
}

body.profile-redesign-page .ticket-message {
  max-width: min(76%, 720px);
  gap: 10px;
}

body.profile-redesign-page .ticket-message--user {
  align-self: flex-end;
}

body.profile-redesign-page .ticket-message--admin {
  align-self: flex-start;
}

body.profile-redesign-page .ticket-message__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
}

body.profile-redesign-page .ticket-message--user .ticket-message__avatar {
  background: rgba(220, 244, 255, 0.94);
  color: #061018;
}

body.profile-redesign-page .ticket-message__bubble {
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.profile-redesign-page .ticket-message--user .ticket-message__bubble {
  border-color: rgba(240, 207, 114, 0.3);
  background: #f0cf72;
  color: #151007;
}

body.profile-redesign-page .ticket-message--admin .ticket-message__bubble {
  background: rgba(255, 255, 255, 0.055);
}

body.profile-redesign-page .ticket-message__author {
  opacity: 0.7;
}

body.profile-redesign-page .ticket-message__text {
  font-size: 14px;
  line-height: 1.5;
}

body.profile-redesign-page .ticket-message__actions {
  gap: 10px;
  color: currentColor;
}

body.profile-redesign-page .ticket-message__action span {
  display: none;
}

body.profile-redesign-page .ticket-composer {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: end;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.028);
}

body.profile-redesign-page .ticket-composer__input {
  min-height: 44px;
  max-height: 160px;
  padding-top: 12px;
  resize: none;
}

body.profile-redesign-page .ticket-composer__send {
  min-height: 44px;
  border-radius: 14px;
}

body.profile-redesign-page .ticket-attachment {
  border-radius: 12px;
}

body.profile-redesign-page .ticket-empty--modern {
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #101010;
}

body.profile-redesign-page .ticket-empty--modern .profile-primary-action {
  margin-top: 8px;
}

body.profile-redesign-page .ticket-stage--create {
  display: grid;
  justify-items: center;
  padding-top: 4px;
}

body.profile-redesign-page .ticket-stage--detail {
  margin-top: 0;
}

@media (max-width: 760px) {
  body.profile-redesign-page .ticket-grid--modern {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .ticket-panel {
    min-height: calc(100vh - 150px);
    border-radius: 18px;
  }

  body.profile-redesign-page .ticket-panel__head {
    align-items: center;
    flex-direction: row;
  }

  body.profile-redesign-page .ticket-panel__head .ticket-status {
    margin-left: 0;
  }

  body.profile-redesign-page .ticket-panel__actions {
    width: 100%;
    margin-left: 52px;
    justify-content: flex-start;
  }

  body.profile-redesign-page .ticket-message {
    max-width: 94%;
  }

  body.profile-redesign-page .ticket-message--system {
    max-width: 94%;
  }

  body.profile-redesign-page .ticket-message__avatar {
    display: none;
  }

  body.profile-redesign-page .ticket-composer {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  body.profile-redesign-page .ticket-composer__send {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.profile-redesign-page .ticket-composer__meta {
    grid-column: 1 / -1;
  }
}

/* Admin tickets redesign 2026-05-30 */
.admin-page .admin-ticket-panel {
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.98)),
    #0d0d0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.admin-page .admin-ticket-head {
  align-items: center;
  padding-bottom: 2px;
}

.admin-page .admin-ticket-head .profile__title {
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1.1;
}

.admin-page .admin-ticket-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.45;
}

.admin-page .admin-ticket-panel .btn {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.admin-page .admin-ticket-panel .btn:hover,
.admin-page .admin-ticket-panel .btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.095);
  outline: none;
}

.admin-page .admin-ticket-panel .btn--primary {
  border-color: transparent;
  background: #f0cf72;
  color: #151007;
}

.admin-page .admin-ticket-panel .btn.is-active {
  border-color: rgba(240, 207, 114, 0.46);
  background: rgba(240, 207, 114, 0.14);
  color: #fff;
}

.admin-page .admin-ticket-panel .btn--primary.is-active {
  background: #f0cf72;
  color: #151007;
}

.admin-page .admin-ticket-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.admin-page .admin-ticket-filters .input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.admin-page .ticket-stage--admin {
  min-height: min(650px, calc(100vh - 250px));
}

.admin-page .ticket-stage--admin.ticket-stage--detail {
  margin-top: -4px;
}

.admin-page .ticket-grid--admin-modern {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.admin-page .admin-ticket-panel .ticket-card {
  min-height: 154px;
  gap: 12px;
  padding: 17px 17px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.038);
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-page .admin-ticket-panel .ticket-card:hover,
.admin-page .admin-ticket-panel .ticket-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 207, 114, 0.22);
  background: rgba(255, 255, 255, 0.065);
  outline: none;
}

.admin-page .admin-ticket-panel .ticket-card.has-unread {
  border-color: rgba(255, 111, 111, 0.32);
  background: rgba(255, 111, 111, 0.07);
}

.admin-page .admin-ticket-panel .ticket-card--closed {
  filter: grayscale(0.8);
  opacity: 0.58;
  background: rgba(255, 255, 255, 0.028);
}

.admin-page .admin-ticket-panel .ticket-card--closed:hover,
.admin-page .admin-ticket-panel .ticket-card--closed:focus-visible {
  opacity: 0.74;
}

.admin-page .admin-ticket-panel .ticket-card__accent {
  left: 14px;
  right: 14px;
  top: 11px;
  height: 3px;
  border-radius: 999px;
  opacity: 0.95;
}

.admin-page .admin-ticket-panel .ticket-card__head {
  padding-top: 8px;
}

.admin-page .admin-ticket-panel .ticket-card__identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-page .admin-ticket-panel .ticket-card__number {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page .admin-ticket-panel .ticket-card__topic {
  font-size: 16px;
  line-height: 1.25;
}

.admin-page .admin-ticket-panel .ticket-card__preview {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.48;
}

.admin-page .admin-ticket-panel .ticket-card__author,
.admin-page .admin-ticket-panel .ticket-card__time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-page .admin-ticket-panel .ticket-card__author {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.admin-page .admin-ticket-panel .ticket-card__time {
  color: rgba(255, 255, 255, 0.38);
}

.admin-page .admin-ticket-panel .ticket-status {
  min-height: 25px;
  max-width: none;
  padding: 0 10px;
  border: 1px solid transparent;
  font-size: 11px;
  letter-spacing: 0;
}

.admin-page .admin-ticket-panel .ticket-status--open {
  border-color: rgba(240, 207, 114, 0.18);
  background: rgba(240, 207, 114, 0.13);
  color: #f4d98a;
}

.admin-page .admin-ticket-panel .ticket-status--work {
  border-color: rgba(255, 213, 120, 0.2);
  background: rgba(255, 213, 120, 0.12);
  color: #ffe4a9;
}

.admin-page .admin-ticket-panel .ticket-status--closed {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.62);
}

.admin-page .admin-ticket-panel .ticket-unread {
  min-width: 23px;
  height: 23px;
  background: #ff6f6f;
}

.admin-page .ticket-panel--admin-chat {
  min-height: min(680px, calc(100vh - 205px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.032);
  box-shadow: none;
}

.admin-page .ticket-panel--admin-chat .ticket-panel__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-page .ticket-panel--admin-chat .ticket-back {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  line-height: 1;
}

.admin-page .ticket-panel--admin-chat .ticket-back:hover,
.admin-page .ticket-panel--admin-chat .ticket-back:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

.admin-page .ticket-panel--admin-chat .ticket-panel__title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-page .ticket-panel--admin-chat .ticket-panel__eyebrow {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page .ticket-panel--admin-chat .ticket-panel__head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.admin-page .ticket-panel--admin-chat .ticket-panel__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.admin-page .ticket-panel--admin-chat .ticket-panel__meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.58);
}

.admin-page .ticket-panel--admin-chat .ticket-topic-badge {
  min-height: 27px;
  color: #071018;
}

.admin-page .ticket-meta-pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.admin-page .admin-ticket-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.018);
}

.admin-page .ticket-panel--admin-chat .ticket-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-page .ticket-panel--admin-chat .ticket-icon-btn:hover,
.admin-page .ticket-panel--admin-chat .ticket-icon-btn:focus-visible {
  border-color: rgba(255, 130, 130, 0.28);
  background: rgba(255, 93, 93, 0.1);
  outline: none;
}

.admin-page .ticket-panel--admin-chat .ticket-messages {
  gap: 13px;
  min-height: 330px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.12);
}

.admin-page .ticket-panel--admin-chat .ticket-message {
  max-width: min(76%, 760px);
  gap: 10px;
}

.admin-page .ticket-panel--admin-chat .ticket-message__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-page .ticket-panel--admin-chat .ticket-message__bubble {
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  box-shadow: none;
}

.admin-page .ticket-panel--admin-chat .ticket-message--staff .ticket-message__bubble {
  border-color: rgba(240, 207, 114, 0.28);
  background: #f0cf72;
  color: #151007;
}

.admin-page .ticket-panel--admin-chat .ticket-message--admin .ticket-message__bubble {
  background: rgba(255, 255, 255, 0.055);
}

.admin-page .ticket-panel--admin-chat .ticket-message__author {
  opacity: 0.72;
}

.admin-page .ticket-panel--admin-chat .ticket-message__text {
  font-size: 14px;
  line-height: 1.5;
}

.admin-page .ticket-panel--admin-chat .ticket-composer {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: end;
  padding: 13px 16px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.026);
}

.admin-page .ticket-panel--admin-chat .ticket-file,
.admin-page .ticket-panel--admin-chat .ticket-input {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.admin-page .ticket-panel--admin-chat .ticket-input:focus,
.admin-page .ticket-panel--admin-chat .ticket-file:focus-within {
  border-color: rgba(240, 207, 114, 0.34);
  box-shadow: 0 0 0 3px rgba(240, 207, 114, 0.08);
}

.admin-page .ticket-panel--admin-chat .ticket-composer__input {
  min-height: 44px;
  max-height: 150px;
  padding-top: 12px;
  resize: none;
}

.admin-page .ticket-panel--admin-chat .ticket-composer__send {
  min-height: 44px;
  border-radius: 14px;
}

.admin-page .ticket-empty--admin {
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.032);
}

.admin-page .ticket-category-editor {
  min-width: 0;
}

.admin-page .ticket-settings-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.admin-page .ticket-setting-card {
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.038);
  box-shadow: none;
}

.admin-page .ticket-setting-card__swatch {
  height: 3px;
  border-radius: 999px;
}

.admin-page .ticket-setting-card__head {
  min-width: 0;
}

.admin-page .ticket-setting-card .ticket-topic-badge {
  min-width: 0;
  max-width: calc(100% - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #071018;
}

.admin-page .ticket-setting-card .ticket-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-page .ticket-setting-card .ticket-input,
.admin-page .ticket-setting-card .ticket-color-input {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.admin-page .ticket-setting-card .ticket-color-input {
  height: 42px;
}

.admin-page .ticket-setting-card .ticket-toggle {
  min-height: 38px;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 1100px) {
  .admin-page .admin-ticket-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-page .admin-ticket-head {
    align-items: stretch;
  }

  .admin-page .admin-ticket-head .btn {
    width: 100%;
  }

  .admin-page .admin-ticket-filters,
  .admin-page .ticket-grid--admin-modern {
    grid-template-columns: 1fr;
  }

  .admin-page .ticket-panel--admin-chat {
    min-height: calc(100vh - 155px);
    border-radius: 16px;
  }

  .admin-page .ticket-panel--admin-chat .ticket-panel__head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .admin-page .ticket-panel--admin-chat .ticket-panel__actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-page .ticket-panel--admin-chat .ticket-message {
    max-width: 94%;
  }

  .admin-page .ticket-panel--admin-chat .ticket-message--system {
    max-width: 94%;
  }

  .admin-page .ticket-panel--admin-chat .ticket-message__avatar {
    display: none;
  }

  .admin-page .ticket-panel--admin-chat .ticket-composer {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .admin-page .ticket-panel--admin-chat .ticket-composer__send,
  .admin-page .ticket-panel--admin-chat .ticket-composer__meta {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Ticket UX polish 2026-05-31 */
textarea,
.modal__textarea,
.ticket-input--textarea,
.ticket-message-edit textarea {
  resize: none !important;
}

body.profile-redesign-page #profile-tab-purchases .profile-section-head,
body.profile-redesign-page .profile-section-head--tickets {
  justify-content: flex-end;
}

body.profile-redesign-page #profile-tab-purchases .profile-search {
  margin-left: auto;
}

body.profile-redesign-page .profile-section-head--tickets .profile-primary-action {
  margin-left: auto;
}

.ticket-file-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-file-chip {
  min-height: 30px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.ticket-file-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-file-chip img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.22);
}

.ticket-file-chip button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ticket-file-chip button:hover,
.ticket-file-chip button:focus-visible {
  background: rgba(255, 99, 99, 0.18);
  color: #ffd2d2;
  outline: none;
}

.ticket-file-preview-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.ticket-file-preview {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.ticket-file-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.25);
}

.ticket-file-preview figcaption {
  min-width: 0;
  padding: 8px 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-file-preview button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.ticket-file-preview button:hover,
.ticket-file-preview button:focus-visible {
  border-color: rgba(255, 130, 130, 0.52);
  background: rgba(130, 30, 30, 0.82);
  outline: none;
}

body.profile-redesign-page .ticket-status,
.admin-page .admin-ticket-panel .ticket-status {
  gap: 7px;
  border-width: 1px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.profile-redesign-page .ticket-status::before,
.admin-page .admin-ticket-panel .ticket-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 17%, transparent);
}

body.profile-redesign-page .ticket-status--open,
.admin-page .admin-ticket-panel .ticket-status--open {
  border-color: rgba(240, 207, 114, 0.38);
  background: rgba(240, 207, 114, 0.16);
  color: #f4d98a;
}

body.profile-redesign-page .ticket-status--work,
.admin-page .admin-ticket-panel .ticket-status--work {
  border-color: rgba(255, 196, 84, 0.42);
  background: rgba(255, 196, 84, 0.17);
  color: #ffe0a3;
}

body.profile-redesign-page .ticket-status--resolved,
.admin-page .admin-ticket-panel .ticket-status--resolved {
  border-color: rgba(255, 121, 121, 0.42);
  background: rgba(255, 121, 121, 0.14);
  color: #ffc4c4;
}

body.profile-redesign-page .ticket-status--rejected,
.admin-page .admin-ticket-panel .ticket-status--rejected {
  border-color: rgba(255, 121, 121, 0.42);
  background: rgba(255, 121, 121, 0.14);
  color: #ffc4c4;
}

body.profile-redesign-page .ticket-card--closed,
.admin-page .admin-ticket-panel .ticket-card--closed {
  filter: none;
  opacity: 0.82;
}

.admin-page .ticket-panel--admin-chat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    #0c0d0f;
}

.admin-page .ticket-panel--admin-chat .ticket-panel__meta-line {
  background: rgba(255, 255, 255, 0.025);
}

.ticket-summary-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(240, 207, 114, 0.055);
}

.ticket-summary-strip span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(240, 207, 114, 0.12);
  color: #f4d98a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ticket-summary-strip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.admin-page .ticket-panel--admin-chat .ticket-messages {
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(240, 207, 114, 0.035), rgba(0, 0, 0, 0.12)),
    #090a0c;
}

.admin-page .ticket-panel--admin-chat .ticket-message {
  max-width: min(72%, 780px);
}

.admin-page .ticket-panel--admin-chat .ticket-message__bubble {
  padding: 13px 15px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.admin-page .ticket-panel--admin-chat .ticket-message--staff {
  align-self: flex-end;
}

.admin-page .ticket-panel--admin-chat .ticket-message--admin {
  align-self: flex-start;
}

.admin-page .ticket-panel--admin-chat .ticket-message--admin .ticket-message__bubble {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.075);
}

.admin-page .ticket-panel--admin-chat .ticket-message__author {
  font-size: 12px;
  font-weight: 950;
}

.admin-page .ticket-panel--admin-chat .ticket-message time {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.admin-page .ticket-panel--admin-chat .ticket-message--staff time {
  color: rgba(7, 16, 24, 0.55);
}

.admin-page .ticket-panel--admin-chat .ticket-composer {
  position: sticky;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 25, 0.98), rgba(12, 13, 15, 0.98));
}

body.profile-redesign-page .ticket-message--system,
.admin-page .ticket-panel--admin-chat .ticket-message--system {
  width: auto;
  max-width: min(76%, 720px);
  align-self: flex-start;
  justify-content: flex-start;
}

body.profile-redesign-page .ticket-message--system .ticket-message__avatar,
.admin-page .ticket-panel--admin-chat .ticket-message--system .ticket-message__avatar {
  width: 34px;
  min-width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0;
}

body.profile-redesign-page .ticket-message--system .ticket-message__bubble,
.admin-page .ticket-panel--admin-chat .ticket-message--system .ticket-message__bubble {
  max-width: none;
  border-color: rgba(240, 207, 114, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

body.profile-redesign-page .ticket-message--system .ticket-message__author,
.admin-page .ticket-panel--admin-chat .ticket-message--system .ticket-message__author {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 950;
  text-transform: none;
}

body.profile-redesign-page .ticket-message--system .ticket-message__text,
.admin-page .ticket-panel--admin-chat .ticket-message--system .ticket-message__text {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

body.profile-redesign-page .ticket-message--system time,
.admin-page .ticket-panel--admin-chat .ticket-message--system time {
  color: rgba(255, 255, 255, 0.42);
}

.ticket-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 120, 120, 0.16);
  border-radius: 16px;
  background: rgba(255, 120, 120, 0.055);
}

.ticket-bulk-actions strong,
.ticket-bulk-actions span {
  display: block;
}

.ticket-bulk-actions strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.ticket-bulk-actions span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.ticket-bulk-actions__buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-page .admin-ticket-panel .btn--danger {
  border-color: rgba(255, 117, 117, 0.28);
  background: rgba(255, 91, 91, 0.12);
  color: #ffd0d0;
}

.admin-page .admin-ticket-panel .btn--danger:hover,
.admin-page .admin-ticket-panel .btn--danger:focus-visible {
  border-color: rgba(255, 117, 117, 0.46);
  background: rgba(255, 91, 91, 0.18);
}

body.profile-redesign-page .ticket-panel__actions .ticket-status,
.admin-page .ticket-panel--admin-chat .ticket-panel__actions .ticket-status {
  flex: 0 0 auto;
  width: max-content;
  max-width: calc(100vw - 96px);
  height: auto;
  min-height: 30px;
  justify-content: center;
  padding: 5px 10px;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  margin-left: auto;
}

body.profile-redesign-page .ticket-panel__actions .ticket-status::before,
.admin-page .ticket-panel--admin-chat .ticket-panel__actions .ticket-status::before {
  align-self: center;
}

/* Ticket redesign 2026-06-25: site style, limited accents */
body.profile-redesign-page .ticket-stage,
.admin-page .ticket-stage--admin {
  --ticket-bg: #0f0f10;
  --ticket-bg-2: #181819;
  --ticket-bg-3: #222223;
  --ticket-line: rgba(255, 255, 255, 0.07);
  --ticket-line-strong: rgba(255, 255, 255, 0.14);
  --ticket-text: #f6f3ed;
  --ticket-muted: rgba(246, 243, 237, 0.56);
  --ticket-warm: #f0cf72;
  --ticket-green: #8fd36a;
  --ticket-red: #ff6f6f;
}

body.profile-redesign-page .ticket-grid--modern,
.admin-page .ticket-grid--admin-modern {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

body.profile-redesign-page .ticket-card,
.admin-page .admin-ticket-panel .ticket-card {
  min-height: 132px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    var(--ticket-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.profile-redesign-page .ticket-card:hover,
body.profile-redesign-page .ticket-card:focus-visible,
.admin-page .admin-ticket-panel .ticket-card:hover,
.admin-page .admin-ticket-panel .ticket-card:focus-visible {
  transform: translateY(-1px);
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)),
    #131314;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.profile-redesign-page .ticket-card.has-unread,
.admin-page .admin-ticket-panel .ticket-card.has-unread {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
    var(--ticket-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.profile-redesign-page .ticket-card--status-open,
.admin-page .admin-ticket-panel .ticket-card--status-open {
  box-shadow: inset 0 0 0 1px rgba(246, 243, 237, 0.1);
}

body.profile-redesign-page .ticket-card__accent,
.admin-page .admin-ticket-panel .ticket-card__accent {
  left: 14px;
  top: 14px;
  width: 7px;
  height: 42px;
  border-radius: 999px;
}

body.profile-redesign-page .ticket-card__head,
.admin-page .admin-ticket-panel .ticket-card__head {
  padding-top: 0;
  padding-left: 18px;
}

body.profile-redesign-page .ticket-card__number,
.admin-page .admin-ticket-panel .ticket-card__number {
  color: rgba(246, 243, 237, 0.42);
  letter-spacing: 0;
  text-transform: none;
}

body.profile-redesign-page .ticket-card__topic,
.admin-page .admin-ticket-panel .ticket-card__topic {
  color: var(--ticket-text);
  font-size: 16px;
  font-weight: 950;
}

body.profile-redesign-page .ticket-card__preview,
.admin-page .admin-ticket-panel .ticket-card__preview {
  margin-left: 18px;
  color: rgba(246, 243, 237, 0.62);
}

body.profile-redesign-page .ticket-card__foot,
.admin-page .admin-ticket-panel .ticket-card__foot {
  margin-left: 18px;
  color: rgba(246, 243, 237, 0.42);
}

body.profile-redesign-page .ticket-status,
.admin-page .admin-ticket-panel .ticket-status {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 9px;
  border: 0;
  color: var(--ticket-muted);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
}

body.profile-redesign-page .ticket-status::before,
.admin-page .admin-ticket-panel .ticket-status::before {
  display: none;
}

body.profile-redesign-page .ticket-status--open,
.admin-page .admin-ticket-panel .ticket-status--open {
  color: rgba(246, 243, 237, 0.72);
  background: rgba(255, 255, 255, 0.075);
}

body.profile-redesign-page .ticket-status--work,
.admin-page .admin-ticket-panel .ticket-status--work {
  color: #f3d98a;
  background: rgba(240, 207, 114, 0.14);
}

body.profile-redesign-page .ticket-status--resolved,
body.profile-redesign-page .ticket-status--rejected,
.admin-page .admin-ticket-panel .ticket-status--resolved,
.admin-page .admin-ticket-panel .ticket-status--rejected {
  color: #ffc7c7;
  background: rgba(255, 111, 111, 0.14);
}

body.profile-redesign-page .ticket-unread,
.admin-page .admin-ticket-panel .ticket-unread {
  background: var(--ticket-red);
  color: #160909;
}

body.profile-redesign-page .ticket-panel,
.admin-page .ticket-panel--admin-chat {
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    #0d0d0e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.profile-redesign-page .ticket-panel__head,
.admin-page .ticket-panel--admin-chat .ticket-panel__head,
body.profile-redesign-page .ticket-panel__meta-line,
.admin-page .ticket-panel--admin-chat .ticket-panel__meta-line,
.admin-page .admin-ticket-toolbar,
.ticket-summary-strip {
  border-bottom: 0;
}

.ticket-summary-strip {
  background: rgba(255, 255, 255, 0.045);
}

.ticket-summary-strip span {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 243, 237, 0.72);
}

body.profile-redesign-page .ticket-topic-badge,
.admin-page .ticket-panel--admin-chat .ticket-topic-badge {
  gap: 7px;
  color: rgba(246, 243, 237, 0.78);
  background: rgba(255, 255, 255, 0.07) !important;
}

body.profile-redesign-page .ticket-topic-badge::before,
.admin-page .ticket-panel--admin-chat .ticket-topic-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: var(--ticket-accent, #f0cf72);
}

body.profile-redesign-page .ticket-input,
body.profile-redesign-page .ticket-custom-select__button,
body.profile-redesign-page .ticket-file,
.admin-page .ticket-panel--admin-chat .ticket-file,
.admin-page .ticket-panel--admin-chat .ticket-input,
.admin-page .ticket-setting-card .ticket-input,
.admin-page .ticket-setting-card .ticket-color-input,
.admin-page .admin-ticket-filters .input {
  border: 0;
  background: rgba(255, 255, 255, 0.062);
  color: var(--ticket-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

body.profile-redesign-page .ticket-input:focus,
body.profile-redesign-page .ticket-custom-select__button:focus-visible,
body.profile-redesign-page .ticket-file:focus-within,
.admin-page .ticket-panel--admin-chat .ticket-input:focus,
.admin-page .ticket-panel--admin-chat .ticket-file:focus-within,
.admin-page .admin-ticket-filters .input:focus {
  border: 0;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(246, 243, 237, 0.28), 0 0 0 3px rgba(246, 243, 237, 0.06);
}

body.profile-redesign-page .ticket-message--user .ticket-message__avatar,
.admin-page .ticket-panel--admin-chat .ticket-message--staff .ticket-message__avatar {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(246, 243, 237, 0.86);
}

img.ticket-message__avatar {
  padding: 0 !important;
  background: transparent !important;
  object-fit: cover !important;
}

body.profile-redesign-page .ticket-message--user .ticket-message__bubble,
.admin-page .ticket-panel--admin-chat .ticket-message--staff .ticket-message__bubble {
  border-color: rgba(246, 243, 237, 0.12);
  background: rgba(246, 243, 237, 0.13);
  color: rgba(246, 243, 237, 0.92);
}

body.profile-redesign-page .ticket-message--user time,
.admin-page .ticket-panel--admin-chat .ticket-message--staff time {
  color: rgba(246, 243, 237, 0.46);
}

body.profile-redesign-page .ticket-message--admin .ticket-message__bubble,
.admin-page .ticket-panel--admin-chat .ticket-message--admin .ticket-message__bubble,
body.profile-redesign-page .ticket-message--system .ticket-message__bubble,
.admin-page .ticket-panel--admin-chat .ticket-message--system .ticket-message__bubble {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.07);
}

body.profile-redesign-page .ticket-messages,
.admin-page .ticket-panel--admin-chat .ticket-messages {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.1)),
    #090909;
}

body.profile-redesign-page .ticket-composer,
.admin-page .ticket-panel--admin-chat .ticket-composer {
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(24, 24, 25, 0.98), rgba(14, 14, 15, 0.98));
}

body.profile-redesign-page .ticket-stage .profile-primary-action,
.admin-page .admin-ticket-panel .btn--primary {
  background: #f6f3ed;
  color: #111;
}

.admin-page .admin-ticket-panel .btn--primary .btn__icon,
.admin-page .admin-ticket-panel .btn--primary img,
body.profile-redesign-page .ticket-stage .profile-primary-action img {
  filter: brightness(0) !important;
}

.admin-page .admin-ticket-panel .btn.is-active {
  border-color: rgba(246, 243, 237, 0.22);
  background: rgba(246, 243, 237, 0.12);
}

.admin-page .admin-ticket-panel.is-ticket-detail .admin-ticket-filters,
.admin-page .admin-ticket-panel.is-ticket-detail #ticket-refresh-btn {
  display: none !important;
}

.admin-page .admin-ticket-head {
  padding-bottom: 0;
}

.admin-page .admin-ticket-subtitle {
  display: none;
}

.admin-ticket-takeover {
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-ticket-takeover img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.78;
}

.admin-ticket-takeover strong,
.admin-ticket-takeover span {
  display: block;
}

.admin-ticket-takeover strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.admin-ticket-takeover span {
  margin-top: 3px;
  color: rgba(246, 243, 237, 0.54);
  font-size: 12px;
  font-weight: 750;
}

.admin-page .ticket-panel--admin-waiting .ticket-messages {
  min-height: 390px;
}

.ticket-closed-note {
  margin: 0;
  padding: 12px 16px 16px;
  color: rgba(246, 243, 237, 0.58);
  background: rgba(255, 255, 255, 0.018);
  font-size: 12px;
  font-weight: 800;
}

.ticket-message__avatar--system {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  box-sizing: border-box !important;
  display: block !important;
  object-fit: contain !important;
  padding: 0 !important;
  background: transparent !important;
  filter: brightness(0) invert(1) !important;
}

.ticket-message__author + .ticket-message__author {
  display: none !important;
}

.admin-page .ticket-settings-list {
  display: grid;
  gap: 8px;
}

.admin-page .ticket-setting-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 8px minmax(180px, 1fr) 42px 46px 38px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.038);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.admin-page .ticket-setting-row.is-disabled {
  opacity: 0.56;
}

.admin-page .ticket-setting-row__swatch {
  width: 8px;
  height: 34px;
  border-radius: 999px;
}

.admin-page .ticket-setting-row__title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-page .ticket-setting-row__title span {
  color: rgba(246, 243, 237, 0.45);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-page .ticket-setting-row__title .ticket-input {
  min-height: 34px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.admin-page .ticket-setting-row__title .ticket-input:focus {
  box-shadow: none;
}

.admin-page .ticket-setting-row__color {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.admin-page .ticket-setting-row__color .ticket-color-input {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.admin-page .ticket-setting-row__switch {
  width: 46px;
  height: 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.admin-page .ticket-setting-row__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-page .ticket-setting-row__switch span {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.16s ease;
}

.admin-page .ticket-setting-row__switch span::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.8);
  transition: transform 0.16s ease, background 0.16s ease;
}

.admin-page .ticket-setting-row__switch input:checked + span {
  background: #f6f3ed;
}

.admin-page .ticket-setting-row__switch input:checked + span::before {
  transform: translateX(18px);
  background: #111;
}

.admin-page .ticket-setting-row .ticket-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-page .ticket-setting-row .ticket-icon-btn:hover,
.admin-page .ticket-setting-row .ticket-icon-btn:focus-visible {
  background: rgba(255, 111, 111, 0.13);
}

@media (max-width: 720px) {
  .ticket-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-bulk-actions__buttons,
  .ticket-bulk-actions__buttons .btn {
    width: 100%;
  }

  .admin-page .ticket-setting-row {
    grid-template-columns: 8px minmax(0, 1fr) 42px 46px 38px;
  }
}

/* Keep profile account dropdown consistent with the rest of the site */
body.profile-redesign-page .profile-menu {
  top: calc(100% + 8px);
  min-width: 254px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(14, 14, 16, 0.98);
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

body.profile-redesign-page .profile-menu__name {
  padding: 12px;
  border-bottom: 0;
  border-radius: 12px 12px 10px 10px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.profile-redesign-page .profile-menu__avatar {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  object-fit: cover;
}

body.profile-redesign-page .profile-menu__name-text #profile-menu-name {
  color: #fff;
  font-size: 17px;
}

body.profile-redesign-page .profile-menu__sub {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

body.profile-redesign-page .profile-menu__item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  transition: background 0.16s ease, transform 0.16s ease;
}

body.profile-redesign-page .profile-menu__item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

body.profile-redesign-page .profile-menu__item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  body.profile-redesign-page .profile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 258px;
    min-width: 258px;
    border-radius: 24px 0 0 24px;
  }
}

textarea {
  resize: none;
}

.admin-2fa-card {
  margin-bottom: 16px;
}

body.profile-redesign-page .profile-admin-2fa-actions {
  margin-top: -4px;
}

.admin-2fa-card__head,
.admin-2fa-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-2fa-card__actions {
  margin-top: 14px;
  justify-content: flex-start;
}

.admin-2fa-badge {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-2fa-badge--on {
  color: #0c311d;
  background: #9af0b9;
  box-shadow: 0 0 0 1px rgba(154, 240, 185, 0.45);
}

.admin-2fa-badge--off {
  color: #4b1212;
  background: #ffb4b4;
  box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.45);
}

.admin-2fa-gate {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  padding: 48px 20px;
}

.admin-2fa-gate__icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #0c311d;
  background: #9af0b9;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-2fa-gate h2 {
  margin: 0;
  font-size: 30px;
}

.admin-2fa-gate p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-2fa-dialog {
  max-width: 520px;
}

.admin-2fa-dialog--compact {
  max-width: 430px;
}

.admin-2fa-step {
  display: grid;
  gap: 14px;
}

.admin-2fa-qr {
  width: min(260px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  object-fit: contain;
}

.admin-2fa-secret,
.admin-2fa-code-field {
  display: grid;
  gap: 8px;
}

.admin-2fa-code-input {
  text-align: center;
  font-size: 26px;
  letter-spacing: 0;
  font-weight: 800;
}

.admin-2fa-code-input:focus,
.admin-2fa-code-input:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.09);
  outline: none;
}

#admin-2fa-confirm-error {
  color: #ffb4b4;
}

@media (max-width: 640px) {
  .admin-2fa-card__head,
  .admin-2fa-card__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Compact Minecraft profile */
body.profile-redesign-page .minecraft-simple-card {
  position: relative;
  min-height: 520px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(122, 255, 172, 0.12), transparent 28%),
    radial-gradient(circle at 22% 44%, rgba(95, 187, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.22);
}

body.profile-redesign-page .minecraft-simple-card__glow {
  position: absolute;
  inset: auto -18% -42% 42%;
  height: 64%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 203, 255, 0.2), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

body.profile-redesign-page .minecraft-simple-card__face {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
}

body.profile-redesign-page .minecraft-face-frame {
  position: relative;
  width: min(310px, 100%);
  aspect-ratio: 1;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.12);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
}

body.profile-redesign-page .minecraft-face-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 38px;
  background:
    linear-gradient(90deg, rgba(143, 203, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 203, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(145deg, #000, transparent 78%);
  opacity: 0.75;
}

body.profile-redesign-page .minecraft-face-frame.is-online {
  border-color: rgba(114, 236, 157, 0.22);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.34),
    0 0 48px rgba(114, 236, 157, 0.14);
}

body.profile-redesign-page .minecraft-player-head--hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 34px;
  box-shadow: none;
}

body.profile-redesign-page .minecraft-simple-card__content {
  position: relative;
  z-index: 1;
}

body.profile-redesign-page .minecraft-simple-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.profile-redesign-page .minecraft-simple-card__content h2 {
  margin: 8px 0 28px;
  color: #fff;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.055em;
}

body.profile-redesign-page .minecraft-auto-sync {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: rgba(214, 239, 255, 0.82);
  background: rgba(143, 203, 255, 0.09);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body.profile-redesign-page .minecraft-player-tags {
  margin: -14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.profile-redesign-page .minecraft-player-tags span {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--profile-soft);
  background: rgba(0, 0, 0, 0.13);
  font-size: 11px;
  font-weight: 750;
}

body.profile-redesign-page .minecraft-simple-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.profile-redesign-page .minecraft-simple-stats article {
  position: relative;
  min-height: 112px;
  padding: 17px;
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(143, 203, 255, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.12);
}

body.profile-redesign-page .minecraft-simple-stats article::after {
  content: '';
  position: absolute;
  inset: auto 14px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(143, 203, 255, 0.7), transparent);
  opacity: 0.58;
}

body.profile-redesign-page .minecraft-simple-stats span,
body.profile-redesign-page .minecraft-simple-stats small {
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 700;
}

body.profile-redesign-page .minecraft-simple-stats strong {
  color: #fff;
  font-size: 23px;
  letter-spacing: -0.025em;
}

body.profile-redesign-page .minecraft-simple-refresh {
  min-width: 150px;
}

body.profile-redesign-page .minecraft-simple-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 750;
}

body.profile-redesign-page .minecraft-online-pill i {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

body.profile-redesign-page .minecraft-online-pill.is-online i {
  box-shadow: 0 0 0 4px rgba(114, 236, 157, 0.1);
}

body.profile-redesign-page .minecraft-simple-empty {
  min-height: 420px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

body.profile-redesign-page .minecraft-simple-empty img {
  width: 88px;
  margin-bottom: 8px;
}

body.profile-redesign-page .minecraft-simple-empty h2,
body.profile-redesign-page .minecraft-simple-empty p {
  margin: 0;
}

body.profile-redesign-page .minecraft-simple-empty p {
  color: var(--profile-soft);
}

body.profile-redesign-page .minecraft-settings-connect {
  display: grid;
  gap: 18px;
}

body.profile-redesign-page .minecraft-settings-connect h3 {
  margin: 0 0 7px;
}

body.profile-redesign-page .minecraft-settings-connect code {
  color: #fff;
}

body.profile-redesign-page .minecraft-link-form--settings {
  max-width: 680px;
}

body.profile-redesign-page .minecraft-settings-player {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.profile-redesign-page .minecraft-settings-player img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  image-rendering: pixelated;
}

body.profile-redesign-page .minecraft-settings-player h3,
body.profile-redesign-page .minecraft-settings-player p {
  margin: 0;
}

body.profile-redesign-page .minecraft-settings-player p {
  margin-top: 5px;
}

/* Minecraft admin */
.admin-minecraft-panel {
  display: grid;
  gap: 18px;
}

.admin-minecraft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-minecraft-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-minecraft-tabs {
  width: fit-content;
  padding: 4px;
  border-radius: 14px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-minecraft-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.admin-minecraft-tabs button.is-active {
  color: #08131e;
  background: #a9d9ff;
}

.admin-minecraft-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-minecraft-summary article {
  min-height: 96px;
  padding: 17px;
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.admin-minecraft-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-minecraft-summary strong {
  color: #fff;
  font-size: 25px;
}

.admin-minecraft-players,
.admin-minecraft-servers {
  display: grid;
  gap: 10px;
}

.admin-minecraft-player-card {
  width: 100%;
  min-height: 92px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 19px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-minecraft-player-card:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 203, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.admin-minecraft-player-card__head {
  width: 66px;
  height: 66px;
  border-radius: 15px;
  image-rendering: pixelated;
}

.admin-minecraft-player-card__main,
.admin-minecraft-player-card__facts {
  display: grid;
  gap: 5px;
}

.admin-minecraft-player-card__title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.admin-minecraft-player-card__title > strong {
  color: #fff;
  font-size: 17px;
}

.admin-minecraft-player-card__main > span,
.admin-minecraft-player-card__main > small,
.admin-minecraft-player-card__facts > span {
  color: var(--muted);
  font-size: 12px;
}

.admin-minecraft-player-card__facts {
  min-width: 150px;
  justify-items: end;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-minecraft-player-card__facts strong {
  color: #fff;
}

.admin-minecraft-presence,
.admin-minecraft-link-state,
.admin-minecraft-stability {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-minecraft-presence.is-online,
.admin-minecraft-link-state.is-linked,
.admin-minecraft-stability.is-excellent {
  color: #baffd0;
  background: rgba(77, 221, 126, 0.13);
}

.admin-minecraft-stability.is-good {
  color: #c9e9ff;
  background: rgba(91, 181, 255, 0.14);
}

.admin-minecraft-stability.is-degraded {
  color: #ffe0a8;
  background: rgba(255, 184, 77, 0.14);
}

.admin-minecraft-stability.is-offline {
  color: #ffb4b4;
  background: rgba(255, 82, 82, 0.12);
}

.admin-minecraft-server-card {
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 21px;
  background:
    radial-gradient(circle at top right, rgba(91, 181, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.admin-minecraft-server-card__head,
.admin-minecraft-server-card__foot,
.admin-minecraft-slots > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-minecraft-server-card__eyebrow {
  color: #8fcbff;
  font-size: 11px;
  font-weight: 800;
}

.admin-minecraft-server-card h3 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 24px;
}

.admin-minecraft-server-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.admin-minecraft-chart-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-minecraft-chart {
  position: relative;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(4, 13, 22, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.admin-minecraft-chart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-minecraft-chart__head > div {
  display: grid;
  gap: 4px;
}

.admin-minecraft-chart__head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-minecraft-chart__head strong,
.admin-minecraft-chart__head b {
  color: #fff;
}

.admin-minecraft-chart__head strong {
  font-size: 15px;
}

.admin-minecraft-chart__head b {
  font-size: 19px;
}

.admin-minecraft-chart--wide {
  grid-column: 1 / -1;
}

.admin-minecraft-chart__plot {
  position: relative;
  cursor: crosshair;
  touch-action: pan-y;
}

.admin-minecraft-chart__svg {
  width: 100%;
  height: 190px;
  margin-top: 12px;
  display: block;
  overflow: visible;
}

.admin-minecraft-chart__grid line {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.admin-minecraft-chart__cursor {
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.56);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.admin-minecraft-chart__cursor-dot {
  opacity: 0;
  stroke: #07111b;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.admin-minecraft-chart__plot.is-hovered .admin-minecraft-chart__cursor,
.admin-minecraft-chart__plot.is-hovered .admin-minecraft-chart__cursor-dot {
  opacity: 1;
}

.admin-minecraft-chart__tooltip {
  position: absolute;
  z-index: 3;
  top: 20px;
  min-width: 116px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background: rgba(6, 13, 22, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -6px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.admin-minecraft-chart__tooltip strong {
  font-size: 14px;
}

.admin-minecraft-chart__tooltip span {
  color: var(--muted);
  font-size: 10px;
}

.admin-minecraft-chart__plot.is-hovered .admin-minecraft-chart__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-minecraft-chart__axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.admin-minecraft-chart-empty {
  height: 190px;
  margin-top: 12px;
  padding: 24px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 49px, rgba(255, 255, 255, 0.035) 50px),
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(255, 255, 255, 0.035) 40px);
  font-size: 12px;
  line-height: 1.5;
}

.admin-minecraft-server-metrics article {
  padding: 14px;
  border-radius: 15px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-minecraft-server-metrics span,
.admin-minecraft-slots span,
.admin-minecraft-server-card__foot {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-minecraft-server-metrics strong,
.admin-minecraft-slots strong {
  color: #fff;
}

.admin-minecraft-slots {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.admin-minecraft-slots i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.admin-minecraft-slots b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66b7ff, #a8dcff);
}

.admin-minecraft-entities {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(4, 13, 22, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.admin-minecraft-entities__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-minecraft-entities__head > div {
  display: grid;
  gap: 4px;
}

.admin-minecraft-entities__head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-minecraft-entities__head strong,
.admin-minecraft-entities__head b {
  color: #fff;
}

.admin-minecraft-entities__head b {
  font-size: 12px;
}

.admin-minecraft-entities__list {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.admin-minecraft-entities__list article {
  min-height: 49px;
  padding: 8px 10px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 28px minmax(125px, 0.7fr) minmax(120px, 1.3fr) 62px;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.032);
}

.admin-minecraft-entities__rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #cdb7ff;
  background: rgba(199, 167, 255, 0.12);
  font-size: 11px;
  font-weight: 850;
}

.admin-minecraft-entities__list article > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-minecraft-entities__list strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-minecraft-entities__list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-minecraft-entities__list i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
}

.admin-minecraft-entities__list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9a77df, #d9c6ff);
}

.admin-minecraft-entities__list em {
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.admin-minecraft-server-card__foot {
  margin-top: 14px;
}

.admin-minecraft-player-dialog {
  max-width: 880px;
}

.admin-minecraft-player-hero {
  padding: 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-minecraft-player-hero img {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  image-rendering: pixelated;
}

.admin-minecraft-player-hero h3 {
  margin: 8px 0 5px;
  color: #fff;
  font-size: 28px;
}

.admin-minecraft-player-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-minecraft-detail-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.admin-minecraft-detail-grid article,
.admin-minecraft-detail-panel {
  padding: 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-minecraft-detail-grid article {
  display: grid;
  gap: 7px;
}

.admin-minecraft-detail-grid span,
.admin-minecraft-detail-panel span {
  color: var(--muted);
  font-size: 11px;
}

.admin-minecraft-detail-grid strong,
.admin-minecraft-detail-panel strong {
  color: #fff;
}

.admin-minecraft-detail-panel {
  margin-top: 13px;
  display: grid;
  gap: 11px;
}

.admin-minecraft-detail-panel > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-minecraft-sessions {
  margin-top: 18px;
}

.admin-minecraft-sessions h4 {
  margin: 0 0 10px;
  color: #fff;
}

.admin-minecraft-sessions > article {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-minecraft-sessions > article + article {
  margin-top: 7px;
}

.admin-minecraft-sessions article div {
  display: grid;
  gap: 3px;
}

.admin-minecraft-sessions article strong {
  color: #fff;
}

.admin-minecraft-sessions article small {
  color: var(--muted);
}

@media (max-width: 900px) {
  body.profile-redesign-page .minecraft-simple-card {
    grid-template-columns: 1fr;
  }

  body.profile-redesign-page .minecraft-face-frame {
    max-width: 230px;
  }

  body.profile-redesign-page .minecraft-simple-card__top,
  body.profile-redesign-page .minecraft-simple-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-minecraft-player-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-minecraft-player-card__facts,
  .admin-minecraft-link-state {
    grid-column: 2;
    justify-self: start;
    justify-items: start;
  }

  .admin-minecraft-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-minecraft-chart-grid {
    grid-template-columns: 1fr;
  }

  .admin-minecraft-chart--wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body.profile-redesign-page .minecraft-simple-card {
    min-height: 0;
    padding: 24px 18px;
    border-radius: 22px;
  }

  body.profile-redesign-page .minecraft-simple-stats,
  .admin-minecraft-summary,
  .admin-minecraft-server-metrics,
  .admin-minecraft-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-minecraft-head,
  .admin-minecraft-server-card__foot,
  .admin-minecraft-detail-panel > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-minecraft-player-card {
    grid-template-columns: 1fr;
  }

  .admin-minecraft-entities__list article {
    grid-template-columns: 28px minmax(0, 1fr) 54px;
  }

  .admin-minecraft-entities__list i {
    display: none;
  }

  .admin-minecraft-player-card__facts,
  .admin-minecraft-link-state {
    grid-column: 1;
  }

  .admin-minecraft-player-card__facts {
    justify-items: start;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .admin-minecraft-player-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final player cabinet overrides */
body.profile-redesign-page .profile-profile-card {
  position: relative;
  min-height: 335px;
  grid-template-columns: minmax(280px, 1fr) minmax(178px, 0.54fr) minmax(190px, 0.58fr);
  align-items: end;
  overflow: hidden;
  padding: 0 28px 22px 34px;
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.96) 0%, rgba(15, 18, 20, 0.9) 48%, rgba(38, 57, 74, 0.82) 73%, rgba(28, 28, 28, 0.98) 73%),
    #101112;
}

body.profile-redesign-page .profile-profile-card[data-subscription-tone="silver"] {
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.96) 0%, rgba(20, 28, 35, 0.9) 48%, rgba(74, 95, 119, 0.82) 73%, rgba(29, 29, 30, 0.98) 73%),
    #101112;
}

body.profile-redesign-page .profile-profile-card[data-subscription-tone="gold"] {
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.96) 0%, rgba(29, 24, 18, 0.92) 48%, rgba(118, 84, 46, 0.78) 73%, rgba(31, 29, 25, 0.98) 73%),
    #11100e;
}

body.profile-redesign-page .profile-player-showcase,
body.profile-redesign-page .profile-profile-card__identity,
body.profile-redesign-page .profile-minecraft-compact,
body.profile-redesign-page .profile-subtle-subscription {
  position: relative;
  z-index: 2;
}

body.profile-redesign-page .profile-player-showcase__skin {
  position: absolute;
  left: 26px;
  bottom: 68px;
  width: min(250px, 32vw);
  height: 238px;
  display: grid;
  align-items: end;
  justify-items: center;
  perspective: 820px;
  pointer-events: none;
}

body.profile-redesign-page .profile-player-showcase__skin img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  transform: rotateY(-17deg) rotateX(3deg);
  transform-origin: bottom center;
  filter: drop-shadow(18px 20px 24px rgba(0, 0, 0, 0.56));
}

body.profile-redesign-page .profile-player-showcase__skin.is-empty img {
  width: 146px;
  height: 236px;
  object-fit: cover;
}

body.profile-redesign-page .profile-player-showcase__skin.is-empty::after {
  content: "?";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) rotateY(-17deg);
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.45), 0 16px 24px rgba(0, 0, 0, 0.45);
}

body.profile-redesign-page .profile-minecraft-compact,
body.profile-redesign-page .profile-subtle-subscription {
  min-height: 62px;
  border: 0;
  border-radius: 10px;
  align-self: end;
  background: #2f2f30;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

body.profile-redesign-page .profile-minecraft-compact.hidden {
  display: none !important;
}

body.profile-redesign-page .profile-mini-subscription {
  width: 100%;
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

body.profile-redesign-page .profile-mini-subscription i {
  position: relative;
  height: 9px;
  min-width: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

body.profile-redesign-page .profile-mini-subscription i[data-tier="issledovatel"] {
  background: #ff717b;
}

body.profile-redesign-page .profile-mini-subscription i[data-tier="puteshestvennik"] {
  background: #5b79ff;
}

body.profile-redesign-page .profile-mini-subscription i[data-tier="traktorist"] {
  background: #ffe95f;
}

body.profile-redesign-page .profile-mini-subscription b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.52);
}

body.profile-redesign-page .profile-cabinet-modal {
  position: fixed;
  inset: 0;
  z-index: 4700;
  display: grid;
  place-items: center;
  padding: 18px;
}

body.profile-redesign-page .profile-cabinet-modal.hidden {
  display: none !important;
}

body.profile-redesign-page .profile-inventory-quantity {
  display: none;
}

@media (max-width: 940px) {
  body.profile-redesign-page .profile-profile-card {
    min-height: 520px;
    grid-template-columns: 1fr;
    padding: 260px 18px 18px;
  }

  body.profile-redesign-page .profile-player-showcase__skin {
    left: 50%;
    bottom: 238px;
    width: 210px;
    transform: translateX(-50%);
  }
}

/* Cabinet scene rebuild */
body.profile-redesign-page[data-profile-active-tab="profile"] {
  background: #060606;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--timeline {
  display: none !important;
}

body.profile-redesign-page .profile-side,
body.profile-redesign-page .profile-side:hover,
body.profile-redesign-page .profile-side:focus-within {
  width: 72px;
  border-radius: 0 12px 12px 0;
  background: #151819;
}

body.profile-redesign-page .profile-side__head {
  height: 88px;
  padding: 0;
  justify-content: center;
}

body.profile-redesign-page .profile-side__brand {
  width: 48px;
  justify-content: center;
}

body.profile-redesign-page .profile-side__brand img {
  width: 28px;
  height: 28px;
}

body.profile-redesign-page .profile-side__brand span {
  display: none;
}

body.profile-redesign-page .profile-side__chevron {
  position: absolute;
  right: 11px;
  top: 49px;
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

body.profile-redesign-page .profile-side__nav {
  padding-top: 16px;
}

body.profile-redesign-page .profile-nav {
  width: 72px;
  min-height: 39px;
  padding: 0;
  justify-content: center;
}

body.profile-redesign-page .profile-nav span {
  display: none;
}

body.profile-redesign-page .profile-nav__icon {
  width: 17px;
  height: 17px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
  margin-left: 72px;
  padding: 24px 0 34px 26px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
  width: min(822px, calc(100vw - 102px));
  min-height: 590px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background: #1f1f20;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.015);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
  position: relative;
  width: 100%;
  height: 352px;
  min-height: 352px;
  display: block;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(14, 16, 18, 0.96) 40%, rgba(38, 57, 74, 0.88) 74%, #1f1f20 74%, #1f1f20 100%);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="silver"] {
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(17, 22, 26, 0.96) 40%, rgba(55, 77, 98, 0.9) 74%, #1f1f20 74%, #1f1f20 100%);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="gold"] {
  background:
    linear-gradient(180deg, rgba(13, 12, 11, 0.98) 0%, rgba(26, 22, 18, 0.96) 40%, rgba(92, 65, 37, 0.86) 74%, #1f1f20 74%, #1f1f20 100%);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.035), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 48%);
  pointer-events: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 24px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f3f3f3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
  left: 48px;
  bottom: 86px;
  width: 250px;
  height: 186px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-linked {
  height: 236px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty::before {
  content: "";
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 116px;
  height: 128px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 0 14px, #151817 14px 38px, transparent 38px 78px, #151817 78px 102px, transparent 102px),
    linear-gradient(180deg, transparent 0 18px, #222522 18px 82px, #141614 82px 128px);
  transform: skewY(-4deg);
  box-shadow:
    -22px 16px 0 -3px #181b19,
    40px 13px 0 -2px #181b19,
    10px 128px 0 -2px #111312,
    54px 128px 0 -2px #111312,
    22px 14px 26px rgba(0, 0, 0, 0.58);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty img {
  position: absolute;
  left: 70px;
  top: 0;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 2px;
  transform: rotate(-4deg) skewY(-2deg);
  filter: drop-shadow(20px 18px 22px rgba(0, 0, 0, 0.56));
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty::after {
  display: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
  position: absolute;
  left: 49px;
  bottom: 35px;
  display: block;
  width: 330px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__avatar,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name span {
  display: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  margin: 2px 0 0;
  color: #70a8ff;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  position: absolute;
  bottom: 99px;
  width: 178px;
  min-height: 62px;
  padding: 10px;
  border-radius: 10px;
  background: #303031;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
  left: 386px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  left: 580px;
  text-align: left;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content {
  justify-items: stretch;
  gap: 6px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription small {
  display: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription {
  margin-top: 7px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i {
  height: 10px;
  min-width: 0;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head > img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact strong {
  font-size: 12px;
  font-weight: 900;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact span {
  gap: 4px;
  font-size: 11px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact > small {
  display: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--inventory-home {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 10px 0 22px 17px;
  border: 0;
  border-radius: 0;
  background: #1f1f20;
  box-shadow: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact {
  min-height: 28px;
  margin: 0 0 8px;
  padding: 0;
  display: block;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(65, 119, 255, 0.55);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
  display: grid;
  grid-template-columns: repeat(auto-fill, 112px);
  gap: 10px;
  justify-content: start;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card {
  width: 112px;
  min-height: 190px;
  padding: 7px;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  background: #2b2b2c;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.025);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__media {
  width: 98px;
  height: 98px;
  aspect-ratio: auto;
  border-radius: 10px;
  background: #333334;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__media img {
  width: 74%;
  height: 74%;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-stack-badge {
  right: 7px;
  bottom: 7px;
  min-width: 22px;
  min-height: 16px;
  padding: 0 5px;
  font-size: 9px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body {
  min-height: 37px;
  gap: 2px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 850;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body small {
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
  line-height: 1.1;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card .profile-secondary-action {
  width: 100%;
  min-height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #4b4b4c;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

@media (max-width: 760px) {
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
    margin-left: 0;
    padding: 12px;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
    width: 100%;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
    height: 500px;
    min-height: 500px;
    background:
      linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(26, 42, 57, 0.9) 58%, #1f1f20 58%, #1f1f20 100%);
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
    left: 50%;
    bottom: 210px;
    transform: translateX(-50%);
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
    position: static;
    width: auto;
    margin: 0 18px 10px;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
    padding-top: 308px;
  }
}

/* Cabinet sizing fixes */
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
  position: relative;
  margin-left: 72px;
  padding: 24px 24px 38px 26px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top {
  position: absolute;
  z-index: 20;
  top: 46px;
  right: 48px;
  display: flex !important;
  width: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top__copy,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-login-btn {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top__auth {
  pointer-events: auto;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-avatar-btn {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: #efefef;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top__avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
  width: min(920px, calc(100vw - 122px));
  min-height: 590px;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
  height: 352px;
  min-height: 352px;
  border-radius: 8px 8px 0 0;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::after {
  display: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
  z-index: 2;
  left: 54px;
  bottom: 84px;
  width: 270px;
  height: 238px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-linked img {
  width: auto;
  height: 238px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: rotateY(-14deg) rotateX(3deg);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty::before,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback::before {
  left: 52px;
  bottom: 6px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty img,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback img {
  left: 74px;
  top: 5px;
  width: 100px;
  height: 100px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
  left: 49px;
  bottom: 34px;
  width: min(360px, 48%);
  z-index: 5;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
  display: block;
  color: #fff;
  font-size: 19px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  display: block;
  color: #6da7ff;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 850;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  bottom: 99px;
  width: 178px;
  min-height: 62px;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px;
  border: 0 !important;
  outline: 0;
  background: #303031;
  box-shadow: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
  left: min(48%, 395px);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  left: min(70%, 590px);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription:hover,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription:focus-visible {
  transform: none;
  background: #343435;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content {
  min-height: 42px;
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 7px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription strong {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription {
  margin: 0;
  gap: 5px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i {
  height: 10px;
  border: 0;
  box-shadow: none;
  outline: 0;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription b {
  display: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__time img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--inventory-home {
  width: calc(100% - 4px);
  margin: 10px 0 0 0;
  padding: 14px 16px 26px;
  border-radius: 0 0 8px 8px;
  background: #1f1f20;
  box-shadow: none;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact {
  margin-bottom: 10px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(138px, 148px));
  gap: 12px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card {
  width: auto;
  min-height: 0;
  padding: 9px;
  gap: 8px;
  border-radius: 18px;
  background: #2b2b2c;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.025);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__media {
  width: auto;
  height: auto;
  aspect-ratio: 1.04 / 1;
  border-radius: 12px;
  background: #333334;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-stack-badge {
  right: 9px;
  bottom: 9px;
  min-width: 30px;
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body {
  min-height: 34px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body strong {
  font-size: 13px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body small {
  font-size: 10px;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card .profile-secondary-action {
  min-height: 30px;
  font-size: 11px;
}

/* Force cabinet corrections requested on 2026-06-24 */
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
  margin-left: 72px !important;
  padding: 24px 24px 44px 26px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
  width: min(822px, calc(100vw - 122px)) !important;
  min-height: 590px !important;
  overflow: visible !important;
  border-radius: 8px !important;
  background: transparent !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
  position: relative !important;
  height: 352px !important;
  min-height: 352px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-hero-avatar-button {
  position: absolute !important;
  z-index: 30 !important;
  top: 24px !important;
  right: 22px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border: 0 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f2f2f2 !important;
  cursor: pointer !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-hero-avatar-button img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
  position: absolute !important;
  z-index: 4 !important;
  left: 48px !important;
  bottom: 86px !important;
  width: 250px !important;
  height: 224px !important;
  display: block !important;
  perspective: 820px !important;
  pointer-events: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-linked img {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: 224px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  image-rendering: pixelated !important;
  transform: rotateY(-13deg) rotateX(3deg) !important;
  filter: drop-shadow(18px 20px 24px rgba(0, 0, 0, 0.58)) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty::before,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback::before {
  content: "" !important;
  position: absolute !important;
  left: 46px !important;
  bottom: 0 !important;
  width: 116px !important;
  height: 132px !important;
  border-radius: 3px !important;
  background:
    linear-gradient(90deg, transparent 0 12px, #141716 12px 37px, transparent 37px 79px, #141716 79px 104px, transparent 104px),
    linear-gradient(180deg, transparent 0 18px, #252824 18px 84px, #151715 84px 132px) !important;
  transform: skewY(-4deg) !important;
  box-shadow:
    -24px 17px 0 -3px #171a18,
    42px 14px 0 -2px #171a18,
    10px 132px 0 -2px #111312,
    55px 132px 0 -2px #111312,
    22px 14px 26px rgba(0, 0, 0, 0.58) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty img,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback img {
  position: absolute !important;
  z-index: 2 !important;
  left: 67px !important;
  top: 2px !important;
  width: 102px !important;
  height: 102px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  image-rendering: pixelated !important;
  transform: rotate(-4deg) skewY(-2deg) !important;
  filter: drop-shadow(20px 18px 22px rgba(0, 0, 0, 0.56)) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
  position: absolute !important;
  z-index: 10 !important;
  left: 49px !important;
  bottom: 34px !important;
  width: 360px !important;
  display: block !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__avatar,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name span {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 19px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  margin: 2px 0 0 !important;
  color: #6fa8ff !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  position: absolute !important;
  z-index: 12 !important;
  bottom: 99px !important;
  width: 178px !important;
  min-height: 62px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  padding: 10px !important;
  background: #303031 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
  left: 386px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  left: 580px !important;
  cursor: pointer !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content {
  width: 100% !important;
  min-height: 42px !important;
  display: grid !important;
  align-content: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
  text-align: left !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content strong,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact strong {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content small,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact > small {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription {
  display: flex !important;
  width: 100% !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i {
  height: 10px !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i b {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__time img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--inventory-home {
  width: calc(100% - 4px) !important;
  margin: 12px 0 0 !important;
  padding: 16px 16px 28px !important;
  border: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: #1f1f20 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 164px)) !important;
  gap: 14px !important;
  justify-content: flex-start !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card {
  width: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
  gap: 10px !important;
  border-radius: 20px !important;
  background: #2b2b2c !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__media {
  width: auto !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 16px !important;
}

/* Rebuild to match the supplied compact sketch */
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
  margin-left: 72px !important;
  padding: 28px 0 42px 26px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
  width: min(824px, calc(100vw - 110px)) !important;
  max-width: 824px !important;
  min-height: 590px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top {
  position: absolute !important;
  z-index: 100 !important;
  top: 51px !important;
  right: calc(100vw - 72px - 26px - min(824px, calc(100vw - 110px)) + 22px) !important;
  display: flex !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top__copy,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-hero-avatar-button,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-login-btn {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-avatar-btn {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #e8e8e8 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top__avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-menu {
  top: 32px !important;
  right: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
  position: relative !important;
  width: 100% !important;
  height: 352px !important;
  min-height: 352px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(14, 16, 18, 0.96) 40%, rgba(38, 57, 74, 0.9) 74%, #1f1f20 74%, #1f1f20 100%) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="gold"] {
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(17, 14, 12, 0.96) 40%, rgba(80, 55, 33, 0.9) 74%, #1f1f20 74%, #1f1f20 100%) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 56%) !important;
  pointer-events: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::after {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
  position: absolute !important;
  z-index: 5 !important;
  left: 48px !important;
  bottom: 86px !important;
  width: 270px !important;
  height: 225px !important;
  display: block !important;
  pointer-events: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.has-skin-render::before,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.has-skin-render::after {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.has-skin-render img {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: 225px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  opacity: 1 !important;
  object-fit: contain !important;
  image-rendering: pixelated !important;
  transform: rotateY(-13deg) rotateX(3deg) !important;
  filter: drop-shadow(18px 20px 24px rgba(0, 0, 0, 0.58)) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin:not(.has-skin-render)::before {
  content: "" !important;
  position: absolute !important;
  left: 48px !important;
  bottom: 0 !important;
  width: 128px !important;
  height: 144px !important;
  border-radius: 3px !important;
  background:
    linear-gradient(90deg, transparent 0 12px, #141716 12px 39px, transparent 39px 89px, #141716 89px 116px, transparent 116px),
    linear-gradient(180deg, transparent 0 18px, #252824 18px 86px, #151715 86px 144px) !important;
  transform: skewY(-4deg) !important;
  box-shadow:
    -26px 18px 0 -3px #171a18,
    46px 14px 0 -2px #171a18,
    12px 142px 0 -2px #111312,
    62px 142px 0 -2px #111312,
    22px 14px 26px rgba(0, 0, 0, 0.58) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin:not(.has-skin-render) img {
  position: absolute !important;
  z-index: 2 !important;
  left: 73px !important;
  top: 0 !important;
  width: 106px !important;
  height: 106px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  opacity: 1 !important;
  object-fit: cover !important;
  image-rendering: pixelated !important;
  transform: rotate(-4deg) skewY(-2deg) !important;
  filter: drop-shadow(20px 18px 22px rgba(0, 0, 0, 0.56)) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
  position: absolute !important;
  z-index: 20 !important;
  left: 49px !important;
  bottom: 34px !important;
  width: 360px !important;
  display: block !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__avatar,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name span {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 19px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  margin: 2px 0 0 !important;
  color: #6fa8ff !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  position: absolute !important;
  z-index: 25 !important;
  bottom: 99px !important;
  width: 178px !important;
  min-height: 62px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  padding: 10px !important;
  background: #303031 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
  left: 386px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  left: 580px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head > img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 6px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content {
  width: 100% !important;
  min-height: 42px !important;
  display: grid !important;
  align-content: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
  text-align: left !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content strong,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__time img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content small,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact > small {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription {
  display: flex !important;
  width: 100% !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i {
  height: 10px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i b {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--inventory-home {
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 16px 16px 28px !important;
  border: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: #1f1f20 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact {
  min-height: 28px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  display: block !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(112px, 112px)) !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card {
  width: 112px !important;
  min-height: 190px !important;
  padding: 7px !important;
  gap: 7px !important;
  border-radius: 13px !important;
  background: #2b2b2c !important;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.025) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__media {
  width: 98px !important;
  height: 98px !important;
  aspect-ratio: auto !important;
  border-radius: 10px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body strong {
  font-size: 11px !important;
  line-height: 1.05 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card .profile-secondary-action {
  min-height: 22px !important;
  font-size: 9px !important;
}

/* Final full-width cabinet geometry */
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
  width: auto !important;
  max-width: none !important;
  margin-left: 104px !important;
  padding: 48px 30px 72px 36px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 120px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #1f1f20 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
  width: 100% !important;
  height: clamp(330px, 39vh, 390px) !important;
  min-height: 330px !important;
  border-radius: 22px 22px 0 0 !important;
  overflow: hidden !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-hero-avatar-button {
  top: 24px !important;
  right: 24px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
  left: clamp(42px, 7vw, 90px) !important;
  bottom: 86px !important;
  width: 290px !important;
  height: 248px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-linked img {
  height: 248px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty::before,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback::before {
  left: 54px !important;
  width: 132px !important;
  height: 146px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-empty img,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback img {
  left: 78px !important;
  top: 0 !important;
  width: 112px !important;
  height: 112px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
  left: clamp(48px, 7vw, 90px) !important;
  bottom: 35px !important;
  width: min(460px, 46vw) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
  font-size: clamp(20px, 2.1vw, 30px) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  font-size: clamp(13px, 1.2vw, 16px) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  bottom: 105px !important;
  width: clamp(178px, 18vw, 230px) !important;
  min-height: 70px !important;
  border-radius: 12px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
  left: auto !important;
  right: clamp(280px, 28vw, 410px) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  left: auto !important;
  right: clamp(34px, 5vw, 86px) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head {
  grid-template-columns: 46px minmax(0, 1fr) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head > img {
  width: 46px !important;
  height: 46px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head {
  min-height: 50px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content strong,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact strong {
  font-size: 14px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i {
  height: 11px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--inventory-home {
  flex: 1 1 auto !important;
  width: 100% !important;
  margin: 14px 0 0 !important;
  padding: 22px 24px 30px !important;
  border-radius: 0 0 22px 22px !important;
  background: #1f1f20 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact h3 {
  font-size: 22px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(150px, 164px)) !important;
  gap: 14px !important;
}

@media (max-width: 1120px) {
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
    margin-left: 92px !important;
    padding: 38px 24px 60px !important;
  }
}

@media (max-width: 760px) {
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
    margin-left: 0 !important;
    padding: 24px 14px 48px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
    min-height: 0 !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
    height: 560px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
    position: static !important;
    width: auto !important;
    margin: 10px 18px 0 !important;
  }
}

/* Profile layout repair: sidebar mechanics + compact cabinet */
body.profile-redesign-page .profile-side {
  width: 104px !important;
  border-radius: 0 18px 18px 0 !important;
  transition: width 0.24s ease !important;
}

body.profile-redesign-page .profile-side:hover,
body.profile-redesign-page .profile-side:focus-within {
  width: 280px !important;
}

body.profile-redesign-page .profile-side__head {
  height: 126px !important;
  padding: 34px 18px 0 !important;
  justify-content: space-between !important;
}

body.profile-redesign-page .profile-side__brand {
  width: auto !important;
  justify-content: flex-start !important;
}

body.profile-redesign-page .profile-side__brand img {
  width: 34px !important;
  height: 34px !important;
}

body.profile-redesign-page .profile-side__brand span {
  display: inline-block !important;
  max-width: 0 !important;
  overflow: hidden !important;
  transition: max-width 0.2s ease !important;
}

body.profile-redesign-page .profile-side:hover .profile-side__brand span,
body.profile-redesign-page .profile-side:focus-within .profile-side__brand span {
  max-width: 160px !important;
}

body.profile-redesign-page .profile-side__chevron {
  position: static !important;
  display: block !important;
  margin-left: auto !important;
}

body.profile-redesign-page .profile-nav {
  width: auto !important;
  min-height: 50px !important;
  padding-left: 40px !important;
  justify-content: flex-start !important;
  gap: 16px !important;
}

body.profile-redesign-page .profile-nav span {
  display: inline-block !important;
  max-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  transition: max-width 0.2s ease, opacity 0.2s ease !important;
  opacity: 0 !important;
}

body.profile-redesign-page .profile-side:hover .profile-nav span,
body.profile-redesign-page .profile-side:focus-within .profile-nav span {
  max-width: 180px !important;
  opacity: 1 !important;
}

body.profile-redesign-page .profile-nav__icon {
  width: 21px !important;
  height: 21px !important;
}

body.profile-redesign-page .profile-workspace {
  transition: margin-left 0.24s ease, width 0.24s ease !important;
}

body.profile-redesign-page .profile-side:hover ~ .profile-workspace,
body.profile-redesign-page .profile-side:focus-within ~ .profile-workspace {
  margin-left: 280px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
  width: auto !important;
  max-width: none !important;
  margin-left: 104px !important;
  padding: 48px 30px 72px 36px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
  width: min(824px, 100%) !important;
  max-width: 824px !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top {
  position: absolute !important;
  z-index: 100 !important;
  top: 52px !important;
  left: calc(104px + 36px + min(824px, calc(100vw - 104px - 66px)) - 42px) !important;
  right: auto !important;
  display: flex !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-side:hover ~ .profile-workspace .profile-top,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-side:focus-within ~ .profile-workspace .profile-top {
  left: calc(280px + 36px + min(824px, calc(100vw - 280px - 66px)) - 42px) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top__copy,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-hero-avatar-button,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-login-btn {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-avatar-btn {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #e8e8e8 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-menu {
  top: 30px !important;
  right: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
  position: relative !important;
  width: 100% !important;
  height: 352px !important;
  min-height: 352px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 0 !important;
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(14, 16, 18, 0.96) 40%, rgba(38, 57, 74, 0.9) 74%, #1f1f20 74%, #1f1f20 100%) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="gold"] {
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(17, 14, 12, 0.96) 40%, rgba(80, 55, 33, 0.9) 74%, #1f1f20 74%, #1f1f20 100%) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
  position: absolute !important;
  z-index: 5 !important;
  left: 48px !important;
  bottom: 86px !important;
  width: 270px !important;
  height: 225px !important;
  display: block !important;
  pointer-events: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.has-skin-render img {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: 225px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  opacity: 1 !important;
  object-fit: contain !important;
  image-rendering: pixelated !important;
  transform: rotateY(-13deg) rotateX(3deg) !important;
  filter: drop-shadow(18px 20px 24px rgba(0, 0, 0, 0.58)) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin:not(.has-skin-render)::before {
  content: "" !important;
  position: absolute !important;
  left: 48px !important;
  bottom: 0 !important;
  width: 128px !important;
  height: 144px !important;
  border-radius: 3px !important;
  background:
    linear-gradient(90deg, transparent 0 12px, #141716 12px 39px, transparent 39px 89px, #141716 89px 116px, transparent 116px),
    linear-gradient(180deg, transparent 0 18px, #252824 18px 86px, #151715 86px 144px) !important;
  transform: skewY(-4deg) !important;
  box-shadow:
    -26px 18px 0 -3px #171a18,
    46px 14px 0 -2px #171a18,
    12px 142px 0 -2px #111312,
    62px 142px 0 -2px #111312,
    22px 14px 26px rgba(0, 0, 0, 0.58) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin:not(.has-skin-render) img {
  position: absolute !important;
  z-index: 2 !important;
  left: 73px !important;
  top: 0 !important;
  width: 106px !important;
  height: 106px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  opacity: 1 !important;
  object-fit: cover !important;
  image-rendering: pixelated !important;
  transform: rotate(-4deg) skewY(-2deg) !important;
  filter: drop-shadow(20px 18px 22px rgba(0, 0, 0, 0.56)) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
  position: absolute !important;
  z-index: 20 !important;
  left: 49px !important;
  bottom: 34px !important;
  width: 360px !important;
  display: block !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__avatar,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name span {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 19px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="gold"] .profile-profile-card__name p {
  color: #ffe95f !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="silver"] .profile-profile-card__name p {
  color: #7ea6ff !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="glass"] .profile-profile-card__name p {
  color: #ff717b !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  position: absolute !important;
  z-index: 25 !important;
  bottom: 99px !important;
  width: 178px !important;
  min-height: 62px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  padding: 10px !important;
  background: #303031 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
  left: 386px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  left: 580px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content {
  width: 100% !important;
  min-height: 42px !important;
  display: grid !important;
  align-content: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
  text-align: left !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content strong,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact__time img {
  filter: brightness(0) invert(1) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription__content small,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact > small {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription {
  display: flex !important;
  width: 100% !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i {
  height: 10px !important;
  min-width: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-mini-subscription i b {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--inventory-home {
  width: 100% !important;
  margin: 24px 0 0 !important;
  padding: 16px 16px 28px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1f1f20 !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact {
  min-height: 28px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel__head--compact h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(112px, 112px)) !important;
  gap: 10px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card {
  width: 112px !important;
  min-height: 190px !important;
  padding: 7px !important;
  gap: 7px !important;
  border-radius: 13px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__media {
  width: 98px !important;
  height: 98px !important;
  aspect-ratio: auto !important;
  border-radius: 10px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__body strong {
  font-size: 11px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card .profile-secondary-action {
  min-height: 22px !important;
  font-size: 9px !important;
}

@media (max-width: 1120px) {
  body.profile-redesign-page .profile-side,
  body.profile-redesign-page .profile-side:hover,
  body.profile-redesign-page .profile-side:focus-within {
    width: 92px !important;
  }

  body.profile-redesign-page .profile-side:hover ~ .profile-workspace,
  body.profile-redesign-page .profile-side:focus-within ~ .profile-workspace,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
    margin-left: 92px !important;
  }
}

@media (max-width: 760px) {
  body.profile-redesign-page .profile-side,
  body.profile-redesign-page .profile-side:hover,
  body.profile-redesign-page .profile-side:focus-within {
    width: 100% !important;
  }

  body.profile-redesign-page .profile-side:hover ~ .profile-workspace,
  body.profile-redesign-page .profile-side:focus-within ~ .profile-workspace,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
    margin-left: 0 !important;
    padding: 24px 14px 48px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Profile cabinet final layout polish */
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
  padding: 28px 28px 48px 26px !important;
  margin-left: 104px !important;
  transition: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-side:hover ~ .profile-workspace,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-side:focus-within ~ .profile-workspace {
  margin-left: 104px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
  width: calc(100vw - 158px) !important;
  max-width: none !important;
  gap: 28px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top {
  top: 44px !important;
  right: 28px !important;
  left: auto !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-side:hover ~ .profile-workspace .profile-top,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-side:focus-within ~ .profile-workspace .profile-top {
  right: 28px !important;
  left: auto !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-avatar-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top__avatar {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-menu {
  top: 44px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
  --profile-scene-height: 406px;
  --profile-bottom-panel: 104px;
  height: calc(var(--profile-scene-height) + var(--profile-bottom-panel)) !important;
  min-height: calc(var(--profile-scene-height) + var(--profile-bottom-panel)) !important;
  border-radius: 10px !important;
  background: #1f1f20 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::before {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="gold"] {
  background: #1f1f20 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="gold"]::before {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-gradient-frame {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: var(--profile-scene-height) !important;
  z-index: 1 !important;
  overflow: hidden !important;
  border-radius: 10px 10px 0 0 !important;
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(14, 16, 18, 0.96) 54%, rgba(38, 57, 74, 0.9) 100%) !important;
  pointer-events: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="gold"] .profile-gradient-frame {
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(17, 14, 12, 0.96) 54%, rgba(80, 55, 33, 0.9) 100%) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::after {
  display: none !important;
  content: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase {
  display: contents !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
  position: absolute !important;
  z-index: 5 !important;
  left: 66px !important;
  bottom: -178px !important;
  width: 470px !important;
  height: 470px !important;
  overflow: visible !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.has-skin-render img {
  height: 470px !important;
  transform: scaleX(-1) rotateY(13deg) rotateX(3deg) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback::before,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback::after {
  display: none !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback img {
  position: absolute !important;
  left: 4px !important;
  bottom: 0 !important;
  width: auto !important;
  height: 470px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: scaleX(-1) !important;
  filter: drop-shadow(18px 20px 24px rgba(0, 0, 0, 0.56)) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin:not(.has-skin-render)::before {
  left: 55px !important;
  bottom: 2px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin:not(.has-skin-render) img {
  left: 80px !important;
  top: 0 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback img {
  left: 4px !important;
  top: auto !important;
  bottom: 0 !important;
  width: auto !important;
  height: 470px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: scaleX(-1) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
  left: 46px !important;
  bottom: 28px !important;
  width: 316px !important;
  z-index: 20 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name {
  display: grid !important;
  gap: 3px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
  max-width: 100% !important;
  font-size: 24px !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
  overflow-wrap: anywhere !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card[data-subscription-tone="none"] .profile-profile-card__name p {
  color: rgba(255, 255, 255, 0.58) !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  bottom: calc(var(--profile-bottom-panel) + 18px) !important;
  width: 196px !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 12px !important;
  border-radius: 12px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
  left: auto !important;
  right: 252px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
  left: auto !important;
  right: 46px !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-panel--inventory-home {
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 18px 30px !important;
  border-radius: 10px !important;
  background: #1f1f20 !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(150px, 164px)) !important;
  gap: 14px !important;
  justify-content: start !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card {
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px !important;
  gap: 9px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-card__media {
  width: auto !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
}

body.profile-redesign-page .profile-subscription-dialog {
  width: min(620px, 100%) !important;
  padding: 20px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(31, 34, 36, 0.98), rgba(18, 19, 20, 0.98)) !important;
}

body.profile-redesign-page .profile-subscription-dialog .profile-cabinet-modal__head {
  padding: 2px 48px 0 2px !important;
}

body.profile-redesign-page .profile-subscription-dialog__body {
  gap: 12px !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero {
  display: grid !important;
  gap: 7px !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(125, 187, 255, 0.18), rgba(255, 255, 255, 0.055)) !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero span,
body.profile-redesign-page .profile-subscription-dialog__summary span {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero strong {
  color: #fff !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero small {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero-progress,
body.profile-redesign-page .profile-subscription-dialog__stage-main b {
  height: 7px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero-progress i,
body.profile-redesign-page .profile-subscription-dialog__stage-main em {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #7ccfff, #ffe95f) !important;
}

body.profile-redesign-page .profile-subscription-dialog__summary {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.profile-redesign-page .profile-subscription-dialog__summary > div {
  min-height: 72px !important;
  display: grid !important;
  align-content: center !important;
  gap: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body.profile-redesign-page .profile-subscription-dialog__summary strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 20px !important;
}

body.profile-redesign-page .profile-subscription-dialog__timeline {
  gap: 9px !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage {
  grid-template-columns: 14px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage.is-current {
  border-color: rgba(124, 207, 255, 0.35) !important;
  background: rgba(124, 207, 255, 0.1) !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.24) !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage.is-current .profile-subscription-dialog__stage-dot {
  background: #7ccfff !important;
  box-shadow: 0 0 0 5px rgba(124, 207, 255, 0.14) !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage.is-past .profile-subscription-dialog__stage-dot {
  background: #ffe95f !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage-main {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage-main span,
body.profile-redesign-page .profile-subscription-dialog__stage > strong {
  color: #fff !important;
  font-size: 14px !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage-main small {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 12px !important;
}

body.profile-redesign-page .profile-subscription-dialog {
  width: min(560px, 100%) !important;
  padding: 16px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  background: #1d1e1f !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48) !important;
}

body.profile-redesign-page .profile-subscription-dialog__body {
  gap: 10px !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero {
  padding: 14px !important;
  gap: 6px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  background: #222324 !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero strong {
  font-size: 24px !important;
  font-weight: 900 !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero-progress,
body.profile-redesign-page .profile-subscription-dialog__stage-main b {
  height: 5px !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

body.profile-redesign-page .profile-subscription-dialog__hero-progress i,
body.profile-redesign-page .profile-subscription-dialog__stage-main em {
  background: rgba(255, 255, 255, 0.78) !important;
}

body.profile-redesign-page .profile-subscription-dialog__summary {
  gap: 8px !important;
}

body.profile-redesign-page .profile-subscription-dialog__summary > div {
  min-height: 64px !important;
  padding: 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

body.profile-redesign-page .profile-subscription-dialog__summary strong {
  font-size: 18px !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage {
  padding: 11px 12px !important;
  border-radius: 10px !important;
  background: transparent !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage + .profile-subscription-dialog__stage {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage.is-current {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body.profile-redesign-page .profile-subscription-dialog__stage-dot,
body.profile-redesign-page .profile-subscription-dialog__stage.is-current .profile-subscription-dialog__stage-dot,
body.profile-redesign-page .profile-subscription-dialog__stage.is-past .profile-subscription-dialog__stage-dot {
  background: rgba(255, 255, 255, 0.55) !important;
  box-shadow: none !important;
}

body.profile-redesign-page .profile-subscription-line-card {
  --subscription-accent: #ffffff;
  --subscription-accent-soft: rgba(255, 255, 255, 0.12);
  display: grid !important;
  gap: 15px !important;
  padding: 4px 2px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.profile-redesign-page .profile-subscription-line-card[data-active-tier="traktorist"] {
  --subscription-accent: #f0c65a;
}

body.profile-redesign-page .profile-subscription-line-card[data-active-tier="puteshestvennik"] {
  --subscription-accent: #8fc7ff;
}

body.profile-redesign-page .profile-subscription-line-card[data-active-tier="issledovatel"] {
  --subscription-accent: #7ee3a6;
}

body.profile-redesign-page .profile-subscription-line-card__head,
body.profile-redesign-page .profile-subscription-line-card__meta {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body.profile-redesign-page .profile-subscription-line-card__head div {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

body.profile-redesign-page .profile-subscription-line-card__head span {
  color: rgba(255, 255, 255, 0.56) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.profile-redesign-page .profile-subscription-line-card__head strong {
  color: var(--subscription-accent) !important;
  font-size: 27px !important;
  line-height: 1.05 !important;
}

body.profile-redesign-page .profile-subscription-line-card__head small,
body.profile-redesign-page .profile-subscription-line-card__meta span {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.profile-redesign-page .profile-subscription-line-card__progress {
  height: 6px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

body.profile-redesign-page .profile-subscription-line-card__progress i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

body.profile-redesign-page .profile-subscription-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
  min-height: auto !important;
  overflow-x: auto !important;
  position: relative !important;
  padding: 10px 4px !important;
}

body.profile-redesign-page .profile-subscription-line::before {
  content: "" !important;
  position: absolute !important;
  left: 22px !important;
  right: 22px !important;
  top: 50% !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-50%) !important;
}

body.profile-redesign-page .profile-subscription-line__item {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  z-index: 1 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 50% !important;
  background: #242526 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 0 0 5px #1d1e1f !important;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, color 0.16s ease !important;
}

body.profile-redesign-page .profile-subscription-line__item::after {
  display: none !important;
}

body.profile-redesign-page .profile-subscription-line__item:hover,
body.profile-redesign-page .profile-subscription-line__item:focus-visible,
body.profile-redesign-page .profile-subscription-line__item.is-selected {
  border-color: var(--subscription-accent) !important;
  background: #303132 !important;
  color: var(--subscription-accent) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

body.profile-redesign-page .profile-subscription-line__item.is-current {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: #303132 !important;
  color: #fff !important;
}

body.profile-redesign-page .profile-subscription-line__item.is-past {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  background: #3a3b3c !important;
}

body.profile-redesign-page .profile-subscription-line__item.is-selected {
  border-color: var(--subscription-accent) !important;
  color: var(--subscription-accent) !important;
  background: #303132 !important;
}

body.profile-redesign-page .profile-subscription-line__item span {
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.profile-redesign-page .profile-subscription-stage-info {
  display: grid !important;
  gap: 4px !important;
  padding: 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body.profile-redesign-page .profile-subscription-stage-info span {
  color: var(--subscription-accent) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.profile-redesign-page .profile-subscription-stage-info strong {
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
}

body.profile-redesign-page .profile-subscription-stage-info small {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

@media (max-width: 760px) {
  body.profile-redesign-page .profile-settings-row--with-icon {
    align-items: center !important;
    flex-direction: row !important;
  }

  body.profile-redesign-page .profile-settings-row--with-icon .profile-settings-actions,
  body.profile-redesign-page .profile-settings-row--with-icon > button,
  body.profile-redesign-page .profile-settings-row--with-icon > span {
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
    padding-right: 18px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
    width: calc(100vw - 144px) !important;
    max-width: none !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top {
    right: 18px !important;
    left: auto !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
    left: auto !important;
    right: 206px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
    left: auto !important;
    right: 48px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
    width: 148px !important;
    height: 72px !important;
  }
}

@media (max-width: 760px) {
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-workspace {
    padding: 22px 14px 44px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] #profile-tab-profile.profile-tab-panel.is-active {
    width: 100% !important;
    gap: 22px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-top {
    top: 38px !important;
    left: auto !important;
    right: 26px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card {
    --profile-scene-height: 434px;
    --profile-bottom-panel: 186px;
    height: auto !important;
    min-height: 620px !important;
    padding-bottom: 18px !important;
    overflow: hidden !important;
    background: #1f1f20 !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card::before {
    display: none !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-gradient-frame {
    height: var(--profile-scene-height) !important;
    background:
      linear-gradient(180deg, rgba(12, 13, 14, 0.98) 0%, rgba(14, 16, 18, 0.96) 46%, rgba(38, 57, 74, 0.9) 100%) !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin {
    left: 50% !important;
    bottom: 200px !important;
    width: 280px !important;
    height: 280px !important;
    transform: translateX(-50%) !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.has-skin-render img {
    height: 280px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.is-fallback img {
    height: 280px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact,
  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
    position: absolute !important;
    width: auto !important;
    margin: 0 !important;
    left: 18px !important;
    right: 18px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__identity {
    bottom: 198px !important;
    left: 24px !important;
    right: 24px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-minecraft-compact {
    bottom: 106px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-subtle-subscription {
    bottom: 30px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-profile-card__name h2 {
    font-size: 22px !important;
  }

  body.profile-redesign-page[data-profile-active-tab="profile"] .profile-inventory-grid--home {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
  }
}

/* MineWeb quick UI tweaks 2026-06-24 */
.landing-page .landing-auth-slot {
  gap: 10px;
}

.landing-page .landing-wiki-link,
.landing-page .landing-shop-link {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eeeeee;
  background: transparent;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.landing-page .landing-wiki-link:hover,
.landing-page .landing-wiki-link:focus-visible,
.landing-page .landing-shop-link:hover,
.landing-page .landing-shop-link:focus-visible {
  color: #ffffff;
  background: transparent;
  outline: none;
  transform: translateY(-1px);
}

.landing-page .landing-login {
  min-height: 48px;
  padding: 8px 18px;
  border-width: 3px;
}

.landing-page .vector {
  width: 32px;
  height: 32px;
}

.landing-page .landing-login__text {
  font-size: 20px;
}

.admin-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav__label {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-nav__warning {
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 1px solid rgba(255, 175, 74, 0.45);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 149, 43, 0.15);
  box-shadow: 0 0 18px rgba(255, 149, 43, 0.13);
}

.admin-nav__warning img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.admin-nav__badge {
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: #df3030;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.95), 0 5px 12px rgba(223, 48, 48, 0.24);
}

body.profile-redesign-page[data-profile-active-tab="profile"] .profile-player-showcase__skin.has-skin-render img {
  image-rendering: auto !important;
}

body.profile-redesign-page .minecraft-player-head,
body.profile-redesign-page .minecraft-player-head--hero {
  image-rendering: auto !important;
}

@media (max-width: 760px) {
  .landing-page .landing-auth-slot {
    gap: 7px;
  }

  .landing-page .landing-wiki-link,
  .landing-page .landing-shop-link {
    min-height: 28px;
    padding: 0 2px;
    font-size: 15px;
  }

  .landing-page .landing-login {
    min-height: 40px;
    padding: 7px 12px;
  }

  .landing-page .vector {
    width: 26px;
    height: 26px;
  }

  .landing-page .landing-login__text {
    font-size: 17px;
  }
}

/* MineWeb admin users clean UI refresh 2026-06-25 */
body.profile-redesign-page .profile-subscription-line-card__head span {
  color: rgba(255, 255, 255, 0.56) !important;
}

.admin-users-panel,
.admin-user-sheet {
  --admin-users-surface: #151515;
  --admin-users-surface-2: #1f1f1f;
  --admin-users-border: rgba(255, 255, 255, 0.085);
  --admin-users-text: #f6f3ed;
  --admin-users-muted: rgba(246, 243, 237, 0.56);
}

.admin-users-panel .btn--primary,
.admin-user-sheet .btn--primary {
  border-color: rgba(246, 243, 237, 0.88) !important;
  background: #f6f3ed !important;
  color: #111111 !important;
  box-shadow: none !important;
}

.admin-users-panel .btn,
.admin-user-sheet .btn,
.admin-users-panel .btn--ghost,
.admin-user-sheet .btn--ghost {
  border-color: var(--admin-users-border) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--admin-users-text) !important;
}

.admin-users-panel .input:focus,
.admin-user-sheet .input:focus {
  border-color: rgba(246, 243, 237, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(246, 243, 237, 0.08) !important;
}

.admin-users-panel .admin-users-stat,
.admin-users-panel .admin-users-stat[data-tone="ok"],
.admin-users-panel .admin-users-stat[data-tone="warn"],
.admin-users-panel .admin-users-stat[data-tone="danger"] {
  border-color: var(--admin-users-border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--admin-users-text) !important;
}

.admin-users-panel .admin-users-stat span {
  color: var(--admin-users-muted) !important;
}

.admin-users-list {
  gap: 9px !important;
}

.admin-user-row--modern {
  display: grid !important;
  grid-template-columns: auto minmax(190px, 1fr) minmax(300px, 1.55fr) auto !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 11px 13px !important;
  border: 1px solid var(--admin-users-border) !important;
  border-radius: 14px !important;
  background: var(--admin-users-surface) !important;
  box-shadow: none !important;
}

.admin-user-row--modern:hover {
  border-color: rgba(246, 243, 237, 0.18) !important;
  background: #191919 !important;
  transform: none !important;
}

.admin-user-row--modern.admin-user-row--blocked {
  border-color: rgba(231, 79, 79, 0.22) !important;
}

.admin-user-avatar,
.admin-user-row--modern .admin-user-row__avatar {
  width: 50px !important;
  height: 50px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #2a2a2a !important;
  box-shadow: none !important;
}

.admin-user-row__main {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
}

.admin-user-row__name-line,
.admin-user-summary__name {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}

.admin-user-row__name {
  min-width: 0 !important;
  color: var(--admin-users-text) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

.admin-user-row__email {
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--admin-users-muted) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-user-role-marks {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.admin-user-role-mark {
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.admin-user-role-mark img {
  width: 13px !important;
  height: 13px !important;
  object-fit: contain !important;
}

.admin-user-role-mark small {
  color: currentColor !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.admin-user-role-mark--admin {
  background: rgba(65, 127, 238, 0.17) !important;
  border-color: rgba(65, 127, 238, 0.32) !important;
}

.admin-user-role-mark--ban {
  color: #ff9a9a !important;
  background: rgba(226, 55, 55, 0.16) !important;
  border-color: rgba(226, 55, 55, 0.28) !important;
}

.admin-user-role-mark--special {
  background: rgba(245, 194, 71, 0.17) !important;
  border-color: rgba(245, 194, 71, 0.34) !important;
}

.admin-user-role-mark--creator {
  background: rgba(230, 59, 59, 0.15) !important;
  border-color: rgba(230, 59, 59, 0.28) !important;
}

.admin-user-row__mini {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.admin-user-mini-card {
  width: min(154px, 31%) !important;
  min-width: 112px !important;
  height: 52px !important;
  padding: 7px 9px !important;
  border: 1px solid var(--admin-users-border) !important;
  border-radius: 11px !important;
  display: grid !important;
  gap: 2px !important;
  overflow: hidden !important;
  color: var(--admin-users-text) !important;
  background: var(--admin-users-surface-2) !important;
  text-align: left !important;
  cursor: pointer !important;
}

.admin-user-mini-card:hover,
.admin-user-mini-card:focus-visible {
  border-color: rgba(246, 243, 237, 0.22) !important;
  background: #252525 !important;
  outline: none !important;
}

.admin-user-mini-card span {
  overflow: hidden !important;
  color: rgba(246, 243, 237, 0.46) !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.admin-user-mini-card strong,
.admin-user-mini-card small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-user-mini-card strong {
  color: var(--admin-users-text) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
}

.admin-user-mini-card small {
  color: var(--admin-users-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.12 !important;
}

.admin-user-row__quiet {
  color: var(--admin-users-muted) !important;
  font-size: 12px !important;
}

.admin-user-row__open {
  min-width: 98px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid var(--admin-users-border) !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: var(--admin-users-text) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.admin-user-row__open img {
  width: 15px !important;
  height: 15px !important;
  object-fit: contain !important;
  opacity: 0.8 !important;
}

.admin-user-sheet__dialog {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #141414 !important;
}

.admin-user-sheet__tab {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--admin-users-muted) !important;
  background: transparent !important;
}

.admin-user-sheet__tab.is-active {
  border-color: rgba(246, 243, 237, 0.28) !important;
  color: var(--admin-users-text) !important;
  background: rgba(246, 243, 237, 0.09) !important;
  box-shadow: none !important;
}

.admin-user-summary {
  border-color: var(--admin-users-border) !important;
  background: #191919 !important;
  box-shadow: none !important;
}

.admin-user-protected {
  border-color: rgba(246, 243, 237, 0.14) !important;
  background: rgba(246, 243, 237, 0.055) !important;
  color: rgba(246, 243, 237, 0.72) !important;
}

.admin-user-summary__avatars {
  position: relative !important;
  width: 64px !important;
  height: 56px !important;
  flex: 0 0 auto !important;
}

.admin-user-summary__avatar {
  width: 54px !important;
  height: 54px !important;
}

.admin-user-summary__minecraft-face {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid #191919 !important;
  border-radius: 8px !important;
  background: #2a2a2a !important;
  object-fit: cover !important;
  image-rendering: auto !important;
}

.admin-user-summary__name,
.admin-user-summary__main {
  color: var(--admin-users-text) !important;
}

.admin-user-summary__email,
.admin-user-summary__meta {
  color: var(--admin-users-muted) !important;
}

.admin-user-badge,
.admin-user-badge--active,
.admin-user-badge--admin {
  border-color: var(--admin-users-border) !important;
  color: var(--admin-users-text) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.admin-user-badge--blocked {
  color: #ffb1a8 !important;
  background: rgba(226, 55, 55, 0.12) !important;
  border-color: rgba(226, 55, 55, 0.24) !important;
}

.admin-user-editor-card,
.admin-user-configs,
.admin-user-data-item {
  border-color: var(--admin-users-border) !important;
  background: #191919 !important;
  box-shadow: none !important;
}

.admin-user-editor-card.is-expanded {
  border-color: rgba(246, 243, 237, 0.18) !important;
  background: #181818 !important;
}

.admin-user-editor-card__head h4,
.admin-user-card-preview strong,
.admin-user-inline-panel__head strong,
.admin-user-data-item strong,
.admin-user-config strong {
  color: var(--admin-users-text) !important;
}

.admin-user-editor-card__head span,
.admin-user-card-preview span,
.admin-user-danger-copy,
.admin-user-data-item span,
.admin-user-config span {
  color: var(--admin-users-muted) !important;
}

.admin-user-inline-panel {
  margin-top: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 13px !important;
  background: #101010 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

.admin-user-inline-panel--danger {
  border-color: rgba(226, 55, 55, 0.24) !important;
}

.admin-inline-close {
  color: var(--admin-users-muted) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--admin-users-border) !important;
}

.admin-user-flags-preview,
.admin-user-flag-switches {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.admin-user-flag-chip,
.admin-user-flag-switch {
  min-height: 38px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--admin-users-border) !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--admin-users-text) !important;
  background: var(--admin-users-surface-2) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.admin-user-flag-chip img,
.admin-user-flag-switch img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
}

.admin-user-flag-switch {
  cursor: pointer !important;
}

.admin-user-flag-switch input {
  width: 16px !important;
  height: 16px !important;
  accent-color: #f6f3ed !important;
}

.admin-user-flag-switch span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.admin-user-config {
  border-color: var(--admin-users-border) !important;
  background: var(--admin-users-surface-2) !important;
}

.shop-cat[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .admin-user-row--modern {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  .admin-user-row__mini {
    grid-column: 1 / -1 !important;
    padding-left: 63px !important;
  }
}

@media (max-width: 640px) {
  .landing-page .landing-wiki-link {
    margin-right: 6px;
  }

  .admin-user-row--modern {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .admin-user-row__open {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .admin-user-row__mini {
    padding-left: 0 !important;
    overflow-x: auto !important;
  }

  .admin-user-mini-card {
    width: 138px !important;
    flex: 0 0 138px !important;
  }
}

/* Admin users interaction polish 2026-06-25 */
.admin-user-row--modern {
  grid-template-columns: auto minmax(190px, 1fr) minmax(330px, 1.65fr) !important;
  cursor: pointer !important;
}

.admin-user-row--modern:focus-within,
.admin-user-row--modern:hover {
  border-color: rgba(246, 243, 237, 0.22) !important;
}

.admin-user-role-mark {
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.admin-user-role-mark img {
  width: 17px !important;
  height: 17px !important;
}

.admin-user-role-mark--admin img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(86%) saturate(1664%) hue-rotate(191deg) brightness(104%) contrast(102%) !important;
}

.admin-user-role-mark--ban img,
.admin-user-role-mark--vpn-ban img,
.admin-user-role-mark--ticket-ban img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(92%) saturate(2567%) hue-rotate(341deg) brightness(104%) contrast(104%) !important;
}

.admin-user-role-mark--special img {
  filter: brightness(0) saturate(100%) invert(82%) sepia(70%) saturate(873%) hue-rotate(356deg) brightness(103%) contrast(101%) !important;
}

.admin-user-role-mark--ban,
.admin-user-role-mark--vpn-ban,
.admin-user-role-mark--ticket-ban {
  color: #ff5a5a !important;
}

.admin-user-role-mark--ban small,
.admin-user-role-mark--vpn-ban small,
.admin-user-role-mark--ticket-ban small {
  margin-left: 2px !important;
  color: #ff5a5a !important;
}

.admin-user-mini-card {
  position: relative !important;
  min-width: 136px !important;
  height: 66px !important;
  padding: 11px 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.admin-user-mini-card:hover,
.admin-user-mini-card:focus-visible {
  transform: translateY(-1px) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)) !important;
}

.admin-user-mini-card__eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: rgba(246, 243, 237, 0.5) !important;
}

.admin-user-mini-card__eyebrow img {
  width: 13px !important;
  height: 13px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(92%) sepia(10%) saturate(219%) hue-rotate(351deg) brightness(101%) contrast(92%) !important;
}

.admin-user-mini-card--subscription {
  min-width: 168px !important;
}

.admin-user-mini-card--subscription strong {
  color: #ffffff !important;
  font-size: 15px !important;
}

.admin-user-mini-card__bar {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 8px !important;
  height: 4px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.admin-user-mini-card__bar::before {
  content: "" !important;
  display: block !important;
  width: var(--fill, 40%) !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.admin-user-mini-card--minecraft .admin-user-mini-card__eyebrow img {
  filter: brightness(0) saturate(100%) invert(72%) sepia(55%) saturate(521%) hue-rotate(75deg) brightness(101%) contrast(98%) !important;
}

.admin-user-mini-card--vpn .admin-user-mini-card__eyebrow img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(64%) saturate(572%) hue-rotate(150deg) brightness(100%) contrast(99%) !important;
}

.admin-user-row__open {
  display: none !important;
}

.admin-user-module-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.admin-user-module {
  min-height: 86px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 16px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--admin-users-text) !important;
  background: #191919 !important;
  text-align: left !important;
  cursor: pointer !important;
}

.admin-user-module:hover,
.admin-user-module:focus-visible {
  border-color: rgba(246, 243, 237, 0.2) !important;
  background: #202020 !important;
  outline: none !important;
}

.admin-user-module:disabled {
  cursor: not-allowed !important;
  opacity: 0.45 !important;
}

.admin-user-module__icon {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
}

.admin-user-module__icon img {
  width: 23px !important;
  height: 23px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(91%) sepia(9%) saturate(227%) hue-rotate(350deg) brightness(100%) contrast(91%) !important;
}

.admin-user-module--danger .admin-user-module__icon img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(79%) saturate(2206%) hue-rotate(335deg) brightness(106%) contrast(101%) !important;
}

.admin-user-module__copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
}

.admin-user-module__copy strong {
  color: var(--admin-users-text) !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
}

.admin-user-module__copy small,
.admin-user-module__hint {
  overflow: hidden !important;
  color: var(--admin-users-muted) !important;
  font-size: 12px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#user-editor-footnote {
  display: none !important;
}

.admin-user-detail-modal.hidden {
  display: none !important;
}

.admin-user-detail-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200 !important;
  display: grid !important;
  place-items: center !important;
  padding: 22px !important;
}

.admin-user-detail-modal__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(7px) !important;
}

.admin-user-detail-modal__dialog {
  position: relative !important;
  width: min(520px, 100%) !important;
  max-height: min(760px, calc(100vh - 44px)) !important;
  overflow: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 20px !important;
  background: #141414 !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42) !important;
}

.admin-user-detail-modal__close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, 0.76) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 20px !important;
  cursor: pointer !important;
}

.admin-user-detail-modal__head {
  display: grid !important;
  gap: 5px !important;
  padding: 22px 58px 12px 20px !important;
}

.admin-user-detail-modal__head span {
  color: rgba(246, 243, 237, 0.46) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.admin-user-detail-modal__head h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
}

.admin-user-detail-modal__body {
  display: grid !important;
  gap: 14px !important;
  padding: 8px 20px 20px !important;
}

.admin-user-subscription-preview {
  --subscription-preview-accent: #8fc7ff;
  display: grid !important;
  gap: 14px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)) !important;
}

.admin-user-subscription-preview[data-active-tier="issledovatel"] {
  --subscription-preview-accent: #7ee3a6;
}

.admin-user-subscription-preview[data-active-tier="puteshestvennik"] {
  --subscription-preview-accent: #8fc7ff;
}

.admin-user-subscription-preview[data-active-tier="traktorist"] {
  --subscription-preview-accent: #f0c65a;
}

.admin-user-subscription-preview__head {
  display: grid !important;
  gap: 5px !important;
}

.admin-user-subscription-preview__head span {
  color: rgba(255, 255, 255, 0.56) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.admin-user-subscription-preview__head strong {
  color: var(--subscription-preview-accent) !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

.admin-user-subscription-preview__head small {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
}

.admin-user-subscription-preview__bar {
  height: 6px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.admin-user-subscription-preview__bar i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: var(--subscription-preview-accent) !important;
}

.admin-user-subscription-preview__steps {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.admin-user-subscription-preview__steps span {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(255, 255, 255, 0.62) !important;
  background: #282828 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.admin-user-subscription-preview__steps span.is-active {
  color: #111 !important;
  background: var(--subscription-preview-accent) !important;
}

.admin-user-detail-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.admin-user-detail-card {
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 18px !important;
  background: #191919 !important;
}

.admin-user-detail-card--center {
  justify-items: center !important;
  text-align: center !important;
}

.admin-user-detail-card strong {
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
}

.admin-user-detail-card small {
  color: rgba(246, 243, 237, 0.58) !important;
  font-size: 13px !important;
}

.admin-user-detail-icon img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(91%) sepia(9%) saturate(227%) hue-rotate(350deg) brightness(100%) contrast(91%) !important;
}

.admin-user-detail-card--danger .admin-user-detail-icon img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(79%) saturate(2206%) hue-rotate(335deg) brightness(106%) contrast(101%) !important;
}

.admin-user-detail-card--player {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
}

.admin-user-detail-player-face {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  image-rendering: auto !important;
}

.admin-user-flag-switches--modal {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

@media (max-width: 980px) {
  .admin-user-row--modern {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .admin-user-row__mini {
    grid-column: 1 / -1 !important;
    padding-left: 62px !important;
  }
}

@media (max-width: 640px) {
  .admin-user-module-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Admin user widgets matched to player cabinet compact cards */
.admin-user-row__mini {
  gap: 10px !important;
}

.admin-user-profile-widget {
  width: clamp(178px, 18vw, 230px) !important;
  min-width: 178px !important;
  height: 70px !important;
  min-height: 70px !important;
  padding: 10px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 12px !important;
  background: #242425 !important;
  box-shadow: none !important;
  display: grid !important;
  align-items: center !important;
}

.admin-user-profile-widget:hover,
.admin-user-profile-widget:focus-visible {
  background: #2b2b2c !important;
  transform: none !important;
}

.admin-user-profile-widget__content {
  width: 100% !important;
  min-height: 50px !important;
  display: grid !important;
  align-content: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
  text-align: left !important;
}

.admin-user-profile-widget__content strong,
.admin-user-profile-widget__head strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

.admin-user-profile-widget__head {
  min-height: 50px !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
}

.admin-user-profile-widget__head > img {
  width: 46px !important;
  height: 46px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  image-rendering: auto !important;
}

.admin-user-profile-widget__head > span {
  min-width: 0 !important;
  display: grid !important;
  gap: 6px !important;
}

.admin-user-profile-widget__head small {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-user-profile-widget__head small img {
  width: 12px !important;
  height: 12px !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

.admin-user-mini-subscription,
.admin-user-mini-subscription * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.admin-user-mini-subscription {
  display: flex !important;
  width: 100% !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.admin-user-mini-subscription i {
  height: 11px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  flex: var(--stage-flex, 1) 1 0 !important;
  display: block !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.admin-user-mini-subscription i b {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.admin-user-mini-subscription i[data-tier="issledovatel"] b {
  background: #48f08d !important;
}

.admin-user-mini-subscription i[data-tier="puteshestvennik"] b {
  background: #53a7ff !important;
}

.admin-user-mini-subscription i[data-tier="traktorist"] b {
  background: #ffd24d !important;
}

.admin-user-mini-subscription i[data-state="future"] b {
  width: 0 !important;
}

.admin-user-mini-card--vpn {
  width: 146px !important;
  min-width: 146px !important;
  height: 70px !important;
  padding: 11px 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #242425 !important;
  box-shadow: none !important;
}

.admin-user-mini-card--vpn:hover,
.admin-user-mini-card--vpn:focus-visible {
  background: #2b2b2c !important;
  transform: none !important;
}

.admin-user-vpn-widget__title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.admin-user-mini-card .admin-user-vpn-widget__title {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.admin-user-vpn-widget__title img {
  width: 19px !important;
  height: 19px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(58%) sepia(64%) saturate(572%) hue-rotate(150deg) brightness(100%) contrast(99%) !important;
}

.admin-user-mini-card--vpn strong {
  font-size: 13px !important;
}

.admin-user-editor-screen {
  display: grid !important;
  gap: 14px !important;
}

.admin-user-editor-back {
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  color: #fff !important;
  background: transparent !important;
  text-align: left !important;
  cursor: pointer !important;
}

.admin-user-editor-back span {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  color: #111 !important;
  background: #f6f3ed !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.admin-user-editor-back strong {
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
}

#users-sync-state[hidden] {
  display: none !important;
}

.admin-user-sub-editor,
.admin-user-ban-editor {
  display: grid !important;
  gap: 14px !important;
}

.admin-user-sub-editor__hero {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

.admin-user-sub-editor__hero img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.9 !important;
}

.admin-user-sub-editor__hero div {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

.admin-user-sub-editor__hero strong {
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
}

.admin-user-sub-editor__hero span {
  color: rgba(246, 243, 237, 0.5) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.admin-user-sub-mode {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.admin-user-sub-mode label {
  min-height: 48px !important;
  cursor: pointer !important;
}

.admin-user-sub-mode input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-user-sub-mode span {
  height: 100% !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: rgba(246, 243, 237, 0.65) !important;
  background: #1e1e1f !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.admin-user-sub-mode img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.78 !important;
}

.admin-user-sub-mode input:checked + span {
  color: #111 !important;
  background: #f6f3ed !important;
}

.admin-user-sub-mode input:checked + span img {
  filter: brightness(0) !important;
}

.admin-user-sub-editor__section {
  display: grid !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.admin-user-sub-editor__section > strong {
  color: #fff !important;
  font-size: 14px !important;
}

.admin-user-sub-stages {
  display: grid !important;
  gap: 7px !important;
}

.admin-user-sub-line {
  display: flex !important;
  gap: 5px !important;
  min-height: 36px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  background: #101011 !important;
}

.admin-user-sub-line i {
  flex: var(--stage-flex, 1) 1 0 !important;
  min-width: 18px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 999px !important;
}

.admin-user-sub-line i[data-tier="issledovatel"] {
  background: #48f08d !important;
}

.admin-user-sub-line i[data-tier="puteshestvennik"] {
  background: #53a7ff !important;
}

.admin-user-sub-line i[data-tier="traktorist"] {
  background: #ffd24d !important;
}

.admin-user-sub-line span {
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 8px !important;
  color: #111 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-user-sub-stage {
  min-height: 52px !important;
  padding: 8px !important;
  border-radius: 10px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(78px, 0.45fr) minmax(78px, 0.45fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  background: #1d1d1e !important;
}

.admin-user-sub-stage > span,
.admin-user-sub-stage label span {
  font-size: 13px !important;
  font-weight: 900 !important;
}

.admin-user-sub-stage label {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
}

.admin-user-sub-stage label span {
  color: rgba(246, 243, 237, 0.52) !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
}

.admin-user-sub-stage button {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: rgba(246, 243, 237, 0.72) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  font-size: 18px !important;
  cursor: pointer !important;
}

.admin-user-sub-icon-btn {
  width: max-content !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #111 !important;
  background: #f6f3ed !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

.admin-user-sub-icon-btn img {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain !important;
  filter: brightness(0) !important;
}

.admin-user-sub-add-panel {
  display: grid !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
}

.admin-user-sub-add-panel summary {
  width: max-content !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(246, 243, 237, 0.88) !important;
  background: #242425 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  list-style: none !important;
  cursor: pointer !important;
}

.admin-user-sub-add-panel summary::-webkit-details-marker {
  display: none !important;
}

.admin-user-sub-add-panel summary img {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

.admin-user-sub-add {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 0.45fr) minmax(84px, 0.45fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
  margin-top: 10px !important;
  padding: 10px !important;
  border-radius: 10px !important;
  background: #1d1d1e !important;
}

.admin-user-sub-add label {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
}

.admin-user-sub-add label span {
  color: rgba(246, 243, 237, 0.52) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.admin-user-sub-stage--issledovatel span {
  color: #48f08d !important;
}

.admin-user-sub-stage--puteshestvennik span {
  color: #53a7ff !important;
}

.admin-user-sub-stage--traktorist span {
  color: #ffd24d !important;
}

.admin-user-flag-switch {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  justify-content: stretch !important;
  min-height: 54px !important;
}

.admin-user-flag-switch input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-user-toggle-ui {
  position: relative !important;
  order: 2 !important;
  width: 44px !important;
  height: 24px !important;
  border-radius: 999px !important;
  flex: 0 0 44px !important;
  background: #303033 !important;
  transition: background 0.16s ease !important;
}

.admin-user-toggle-ui::before {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.78) !important;
  transition: transform 0.16s ease, background 0.16s ease !important;
}

.admin-user-flag-switch input:checked + .admin-user-toggle-ui {
  background: #f6f3ed !important;
}

.admin-user-flag-switch input:checked + .admin-user-toggle-ui::before {
  transform: translateX(20px) !important;
  background: #111 !important;
}

.admin-user-flag-switch__label {
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.admin-user-flag-switch__label img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
}

.admin-user-flag-switch:first-child .admin-user-flag-switch__label img {
  filter: brightness(0) saturate(100%) invert(82%) sepia(70%) saturate(873%) hue-rotate(356deg) brightness(103%) contrast(101%) !important;
}

.admin-user-flag-switch:nth-child(2) .admin-user-flag-switch__label img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(92%) saturate(2567%) hue-rotate(341deg) brightness(104%) contrast(104%) !important;
}

.admin-user-ban-editor {
  padding: 14px !important;
  border-radius: 16px !important;
  background: #19191a !important;
}

.admin-user-ban-editor__hero {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.admin-user-ban-editor__hero img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(38%) sepia(92%) saturate(2567%) hue-rotate(341deg) brightness(104%) contrast(104%) !important;
}

.admin-user-ban-editor__hero strong {
  color: #fff !important;
  font-size: 18px !important;
}

.admin-user-ban-reason {
  min-height: 92px !important;
  resize: vertical !important;
}

.admin-user-ban-duration {
  display: grid !important;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 12px !important;
}

.admin-user-ban-duration > span {
  padding-bottom: 10px !important;
  color: rgba(246, 243, 237, 0.52) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

#user-editor-kicker,
#user-editor-subtitle,
.admin-user-summary__badges {
  display: none !important;
}

.admin-user-role-mark--creator img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(92%) saturate(2567%) hue-rotate(341deg) brightness(104%) contrast(104%) !important;
}

.admin-user-ban-active {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.admin-user-ban-active__item {
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.admin-user-ban-active__item--full {
  background: rgba(226, 55, 55, 0.18) !important;
}

.admin-user-ban-active__item--vpn {
  background: rgba(77, 196, 232, 0.16) !important;
}

.admin-user-ban-active__item--tickets {
  background: rgba(245, 194, 71, 0.18) !important;
}

.admin-user-ban-active__item small {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 11px !important;
}

body.profile-redesign-page .profile-subscription-line-card__head > div > span {
  color: rgba(246, 243, 237, 0.56) !important;
}

body.profile-redesign-page .ticket-message__avatar--system {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  align-self: center;
  object-fit: contain !important;
  padding: 0 !important;
  background: transparent !important;
  filter: brightness(0) invert(1) !important;
}

body.profile-redesign-page .ticket-message--user .ticket-message__bubble,
.admin-page .ticket-panel--admin-chat .ticket-message--staff .ticket-message__bubble {
  background: rgba(246, 243, 237, 0.17) !important;
}

.profile-promo-actions {
  display: grid;
  grid-template-columns: minmax(120px, 180px) auto;
  align-items: center;
  gap: 10px;
}

.profile-promo-input {
  min-height: 42px;
  border: 1px solid rgba(246, 243, 237, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 243, 237, 0.92);
  padding: 0 13px;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-promo-input:focus {
  outline: none;
  border-color: rgba(246, 243, 237, 0.28);
  box-shadow: 0 0 0 3px rgba(246, 243, 237, 0.08);
}

#profile-promo-status[data-tone="success"] {
  color: rgba(168, 230, 170, 0.86);
}

#profile-promo-status[data-tone="error"] {
  color: rgba(255, 136, 136, 0.9);
}

.profile-access-stub {
  border-color: rgba(239, 83, 80, 0.22) !important;
  background: rgba(239, 83, 80, 0.09) !important;
}

.ticket-blocked-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(239, 83, 80, 0.22);
  border-radius: 12px;
  background: rgba(239, 83, 80, 0.09);
  color: rgba(246, 243, 237, 0.9);
}

.profile-vpn-summary > .ticket-blocked-notice {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 0;
}

.ticket-blocked-notice img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(89%) saturate(1867%) hue-rotate(336deg) brightness(101%) contrast(92%);
}

.ticket-blocked-notice strong,
.ticket-blocked-notice span {
  display: block;
}

.ticket-blocked-notice strong {
  font-size: 14px;
  font-weight: 900;
}

.ticket-blocked-notice span {
  margin-top: 2px;
  color: rgba(246, 243, 237, 0.62);
  font-size: 12px;
  font-weight: 750;
}

.admin-user-flag-switch__label img[src$="/vpn.svg"] {
  filter: brightness(0) invert(1);
}

body.profile-redesign-page .profile-subscription-line-card__head > div > span {
  color: rgba(246, 243, 237, 0.56) !important;
}

body.profile-redesign-page .profile-subscription-line-card__head > div > strong {
  color: var(--subscription-accent) !important;
}

@media (max-width: 640px) {
  .profile-promo-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* Admin minimal refresh 2026-08-04. Top header and screenshots tab intentionally keep their existing design. */
body.admin-ui-refresh {
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 39, 42, 0.55), transparent 32%),
    linear-gradient(135deg, #18181b 0%, #111113 48%, #09090b 100%);
  color: #e4e4e7;
}

body.admin-ui-refresh .admin-page {
  margin-top: 82px;
  padding: 0 clamp(12px, 2.2vw, 28px) 44px;
  --admin-accent: #a1a1aa;
  --admin-accent-soft: rgba(161, 161, 170, 0.1);
  --admin-line: rgba(255, 255, 255, 0.1);
  --admin-surface: rgba(24, 24, 27, 0.72);
  --admin-surface-strong: rgba(39, 39, 42, 0.78);
}

body.admin-ui-refresh .admin-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  max-width: 1580px;
  margin: 0 auto;
}

body.admin-ui-refresh .admin-sidebar {
  top: 78px;
  min-height: calc(100vh - 104px);
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 16px 48px rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
  scrollbar-color: rgba(113, 113, 122, 0.72) transparent;
}

body.admin-ui-refresh .admin-nav,
body.admin-ui-refresh .admin-nav-group {
  gap: 6px;
}

body.admin-ui-refresh .admin-nav-group__toggle {
  min-height: 32px;
  padding: 7px 8px;
  border-radius: 5px;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.admin-ui-refresh .admin-nav-group__toggle:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.035);
}

body.admin-ui-refresh .admin-nav-group__content {
  gap: 4px;
  padding-left: 8px;
}

body.admin-ui-refresh .admin-nav__item {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #d4d4d8;
  box-shadow: none;
  transform: none;
}

body.admin-ui-refresh .admin-nav-group__content .admin-nav__item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-ui-refresh .admin-nav__item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(63, 63, 70, 0.45);
  box-shadow: none;
  transform: none;
}

body.admin-ui-refresh .admin-nav__item.tab--active {
  border-color: rgba(255, 255, 255, 0.14);
  background: #27272a;
  color: #fafafa;
  box-shadow: inset 3px 0 0 #e4e4e7;
}

body.admin-ui-refresh .admin-nav__label {
  font-size: 13px;
  font-weight: 600;
}

body.admin-ui-refresh .admin-nav__warning {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

body.admin-ui-refresh .admin-nav__badge {
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  box-shadow: none;
}

body.admin-ui-refresh .admin-sidebar-toggle {
  left: 248px;
  top: 12px;
  width: 26px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 6px 6px 0;
  background: rgba(24, 24, 27, 0.96);
  color: #a1a1aa;
}

body.admin-ui-refresh.admin-sidebar-collapsed .admin-sidebar-toggle {
  left: 0;
}

body.admin-ui-refresh .admin-content {
  gap: 16px;
  padding-left: 0;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel),
body.admin-ui-refresh .admin-user-sheet .admin-sheet__dialog,
body.admin-ui-refresh .admin-sheet:not(#profile-2fa-setup-modal):not(#profile-2fa-confirm-modal) .admin-sheet__dialog {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.86);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) {
  padding: clamp(16px, 1.8vw, 24px);
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .profile__title {
  margin-bottom: 14px;
  color: #f4f4f5;
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 700;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .section-subtitle,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-shop-panel__subtitle,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .verify__hint,
body.admin-ui-refresh .admin-sheet__subtitle,
body.admin-ui-refresh .admin-sheet__footnote {
  color: #a1a1aa;
}

body.admin-ui-refresh .admin-metric-card,
body.admin-ui-refresh .perf-card,
body.admin-ui-refresh .node-load-panel,
body.admin-ui-refresh .card-lite,
body.admin-ui-refresh .dashboard-panel-option,
body.admin-ui-refresh .admin-audit-card,
body.admin-ui-refresh .admin-user-row,
body.admin-ui-refresh .admin-user-editor-card,
body.admin-ui-refresh .admin-user-inline-panel,
body.admin-ui-refresh .admin-user-data-item,
body.admin-ui-refresh .admin-catalog-card,
body.admin-ui-refresh .admin-catalog-help,
body.admin-ui-refresh .admin-promo-board,
body.admin-ui-refresh .admin-sheet-panel,
body.admin-ui-refresh .admin-sheet-aside,
body.admin-ui-refresh .admin-collection-empty,
body.admin-ui-refresh .admin-ticket-panel .ticket-card,
body.admin-ui-refresh .admin-wiki-help-card,
body.admin-ui-refresh .admin-wiki-card {
  border-color: rgba(255, 255, 255, 0.09) !important;
  border-radius: 6px !important;
  background: rgba(24, 24, 27, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

body.admin-ui-refresh .admin-metric-card,
body.admin-ui-refresh .perf-card {
  min-height: 104px;
  padding: 14px;
}

body.admin-ui-refresh .admin-metric-card__label,
body.admin-ui-refresh .perf-card__head,
body.admin-ui-refresh .admin-users-stat,
body.admin-ui-refresh .admin-audit-card__time,
body.admin-ui-refresh .admin-catalog-card__sub,
body.admin-ui-refresh .admin-catalog-card__category {
  color: #a1a1aa;
}

body.admin-ui-refresh .admin-metric-card__value,
body.admin-ui-refresh .perf-card__head span:last-child,
body.admin-ui-refresh .admin-catalog-card__title,
body.admin-ui-refresh .admin-audit-card__title {
  color: #fafafa;
}

body.admin-ui-refresh .perf-card__line,
body.admin-ui-refresh .node-load-panel__line {
  stroke: #d4d4d8;
}

body.admin-ui-refresh .perf-card__area,
body.admin-ui-refresh .node-load-panel__area {
  fill: rgba(161, 161, 170, 0.14);
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .btn,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-action-btn,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-user-row__edit,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-catalog-card__btn,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .ticket-icon-btn,
body.admin-ui-refresh .admin-sheet .btn {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 5px !important;
  background: rgba(39, 39, 42, 0.72) !important;
  color: #e4e4e7 !important;
  box-shadow: none !important;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .btn:hover,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-action-btn:hover,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-user-row__edit:hover,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-catalog-card__btn:hover,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .ticket-icon-btn:hover,
body.admin-ui-refresh .admin-sheet .btn:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(63, 63, 70, 0.82) !important;
  transform: none !important;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .btn--primary,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-shop-panel .btn--primary,
body.admin-ui-refresh .admin-sheet .btn--primary {
  border-color: #e4e4e7 !important;
  background: #e4e4e7 !important;
  color: #111113 !important;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .btn--danger,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .admin-action-btn--danger {
  border-color: rgba(248, 113, 113, 0.35) !important;
  background: rgba(127, 29, 29, 0.28) !important;
  color: #fecaca !important;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .input,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) select,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) textarea,
body.admin-ui-refresh .admin-sheet .input,
body.admin-ui-refresh .admin-sheet select,
body.admin-ui-refresh .admin-sheet textarea,
body.admin-ui-refresh .modal__textarea {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 5px !important;
  background: rgba(9, 9, 11, 0.78) !important;
  color: #f4f4f5 !important;
  box-shadow: none !important;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .input:focus,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) select:focus,
body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) textarea:focus,
body.admin-ui-refresh .admin-sheet .input:focus,
body.admin-ui-refresh .admin-sheet select:focus,
body.admin-ui-refresh .admin-sheet textarea:focus {
  border-color: rgba(228, 228, 231, 0.42) !important;
  outline: none;
}

body.admin-ui-refresh .table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(24, 24, 27, 0.42);
}

body.admin-ui-refresh .table th,
body.admin-ui-refresh .table td {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body.admin-ui-refresh .table th {
  color: #a1a1aa;
  font-weight: 600;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) .alert {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(39, 39, 42, 0.72);
  color: #e4e4e7;
}

body.admin-ui-refresh .admin-2fa-gate {
  min-height: 340px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

body.admin-ui-refresh .admin-2fa-gate__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(39, 39, 42, 0.72);
  color: #fafafa;
  font-weight: 800;
}

body.admin-ui-refresh .admin-2fa-gate h2,
body.admin-ui-refresh .admin-2fa-gate p {
  margin: 0;
}

body.admin-ui-refresh .admin-2fa-gate p {
  max-width: 520px;
  color: #a1a1aa;
}

body.admin-ui-refresh .admin-build-file-grid {
  gap: 10px;
}

body.admin-ui-refresh .admin-build-file-card {
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(9, 9, 11, 0.3);
}

body.admin-ui-refresh .admin-catalog-card__media,
body.admin-ui-refresh .admin-catalog-card__media img {
  border-radius: 5px 5px 0 0;
}

body.admin-ui-refresh .admin-sidebar::-webkit-scrollbar {
  width: 8px;
}

body.admin-ui-refresh .admin-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(113, 113, 122, 0.72);
}

@media (max-width: 980px) {
  body.admin-ui-refresh .admin-shell {
    grid-template-columns: 1fr;
  }

  body.admin-ui-refresh .admin-sidebar {
    position: static;
    min-height: auto;
    max-height: none;
  }
}

/* Landing build download modal. */
.landing-page .landing-build-link {
  min-height: 32px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #eeeeee;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.landing-page .landing-build-link:hover,
.landing-page .landing-build-link:focus-visible {
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.landing-build-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.landing-build-modal.hidden {
  display: none !important;
}

.landing-build-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.landing-build-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.96);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.48);
}

.landing-build-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(39, 39, 42, 0.72);
  color: #e4e4e7;
  font-size: 20px;
}

.landing-build-modal__head {
  display: grid;
  gap: 6px;
  padding-right: 38px;
}

.landing-build-modal__head span {
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-build-modal__head h2 {
  margin: 0;
  color: #fafafa;
  font-size: 28px;
  line-height: 1.1;
}

.landing-build-modal__head p {
  margin: 0;
  color: #a1a1aa;
  font-size: 14px;
}

.landing-build-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.landing-build-option {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(24, 24, 27, 0.72);
  color: #f4f4f5;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.landing-build-option:hover,
.landing-build-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(39, 39, 42, 0.88);
  outline: none;
  transform: translateY(-1px);
}

.landing-build-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.landing-build-option.is-disabled:hover,
.landing-build-option.is-disabled:focus-visible {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.72);
  transform: none;
}

.landing-build-option__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-build-option__icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.landing-build-option__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.landing-build-option__copy strong {
  color: #fafafa;
  font-size: 16px;
  line-height: 1.2;
}

.landing-build-option__copy small,
.landing-build-option__copy em,
.landing-build-status {
  color: #a1a1aa;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.landing-build-status {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  text-align: center;
}

.landing-build-status--error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.22);
}

body.landing-build-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .landing-page .landing-build-link {
    min-height: 28px;
    font-size: 15px;
  }
}

/* Admin workspace layout v2: fixed icon sidebar and full-width work area. */
body.admin-ui-refresh .admin-page {
  margin: 64px 0 0;
  min-height: calc(100vh - 64px);
  padding: 0 0 42px;
  background:
    radial-gradient(circle at 72% 0%, rgba(63, 63, 70, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.98), rgba(12, 12, 14, 1));
}

body.admin-ui-refresh .admin-shell {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 64px);
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

body.admin-ui-refresh .admin-sidebar {
  position: fixed;
  left: 0;
  top: 64px;
  bottom: 0;
  z-index: 8;
  width: 280px;
  min-height: 0;
  max-height: none;
  padding: 14px 12px 18px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.98), rgba(9, 9, 11, 0.98)),
    rgba(9, 9, 11, 0.98);
  box-shadow: 18px 0 54px rgba(0, 0, 0, 0.24);
}

body.admin-ui-refresh .admin-content {
  grid-column: 2;
  width: 100%;
  min-height: calc(100vh - 64px);
  padding: 22px clamp(18px, 2vw, 34px) 48px;
  background: rgba(9, 9, 11, 0.38);
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) {
  min-height: calc(100vh - 108px);
  border-radius: 0;
  background: rgba(14, 14, 16, 0.82);
}

body.admin-ui-refresh .admin-sidebar-toggle {
  position: fixed;
  top: 78px;
  left: 280px;
  z-index: 12;
}

body.admin-ui-refresh.admin-sidebar-collapsed .admin-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

body.admin-ui-refresh.admin-sidebar-collapsed .admin-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

body.admin-ui-refresh.admin-sidebar-collapsed .admin-sidebar-toggle {
  left: 0;
}

body.admin-ui-refresh.admin-sidebar-collapsed .admin-content {
  grid-column: 2;
}

body.admin-ui-refresh .admin-nav {
  gap: 4px;
}

body.admin-ui-refresh .admin-nav-group {
  position: relative;
  gap: 3px;
}

body.admin-ui-refresh .admin-nav-group + .admin-nav-group,
body.admin-ui-refresh .admin-nav__item + .admin-nav-group,
body.admin-ui-refresh .admin-nav-group + .admin-nav__item {
  margin-top: 8px;
}

body.admin-ui-refresh .admin-nav-group__toggle,
body.admin-ui-refresh .admin-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.admin-ui-refresh .admin-nav-group__toggle {
  min-height: 34px;
  padding: 8px 9px;
  justify-content: flex-start;
}

body.admin-ui-refresh .admin-nav__item {
  min-height: 42px;
  padding: 9px 11px;
}

body.admin-ui-refresh .admin-nav-group__toggle::before,
body.admin-ui-refresh .admin-nav__item::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  opacity: 0.78;
  -webkit-mask: var(--admin-nav-icon, url("/icons/info.svg")) center / contain no-repeat;
  mask: var(--admin-nav-icon, url("/icons/info.svg")) center / contain no-repeat;
}

body.admin-ui-refresh .admin-nav__item.tab--active::before {
  opacity: 1;
}

body.admin-ui-refresh .admin-nav-group__toggle > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

body.admin-ui-refresh .admin-nav-group__arrow {
  margin-left: auto;
}

body.admin-ui-refresh #group-nodes-toggle { --admin-nav-icon: url("/icons/vpn.svg"); }
body.admin-ui-refresh #group-minecraft-toggle { --admin-nav-icon: url("/icons/minecraft_pickaxe.svg"); }
body.admin-ui-refresh #group-tickets-toggle { --admin-nav-icon: url("/icons/mail.svg"); }
body.admin-ui-refresh #group-wiki-toggle { --admin-nav-icon: url("/icons/link.svg"); }
body.admin-ui-refresh #group-shop-toggle { --admin-nav-icon: url("/icons/shop.svg"); }
body.admin-ui-refresh #tab-dashboard { --admin-nav-icon: url("/icons/home.svg"); }
body.admin-ui-refresh #tab-node-panel { --admin-nav-icon: url("/icons/vpn.svg"); }
body.admin-ui-refresh #tab-users { --admin-nav-icon: url("/icons/account.svg"); }
body.admin-ui-refresh #tab-minecraft-players { --admin-nav-icon: url("/icons/user.svg"); }
body.admin-ui-refresh #tab-minecraft-server { --admin-nav-icon: url("/icons/settings.svg"); }
body.admin-ui-refresh #tab-audit-log { --admin-nav-icon: url("/icons/time.svg"); }
body.admin-ui-refresh #tab-income { --admin-nav-icon: url("/icons/money.svg"); }
body.admin-ui-refresh #tab-shop-screenshots { --admin-nav-icon: url("/icons/camera.svg"); }
body.admin-ui-refresh #tab-ticket-inbox { --admin-nav-icon: url("/icons/mail.svg"); }
body.admin-ui-refresh #tab-ticket-settings { --admin-nav-icon: url("/icons/settings.svg"); }
body.admin-ui-refresh #tab-wiki-pages { --admin-nav-icon: url("/icons/home.svg"); }
body.admin-ui-refresh #tab-wiki-assets { --admin-nav-icon: url("/icons/camera.svg"); }
body.admin-ui-refresh #tab-wiki-settings { --admin-nav-icon: url("/icons/settings.svg"); }
body.admin-ui-refresh #tab-wiki-help { --admin-nav-icon: url("/icons/info.svg"); }
body.admin-ui-refresh #tab-shop-catalog { --admin-nav-icon: url("/icons/shop.svg"); }
body.admin-ui-refresh #tab-shop-promos { --admin-nav-icon: url("/icons/tag.svg"); }
body.admin-ui-refresh #tab-settings { --admin-nav-icon: url("/icons/settings.svg"); }

body.admin-ui-refresh .admin-metrics-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

body.admin-ui-refresh .performance-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

body.admin-ui-refresh .table-wrap {
  width: 100%;
}

body.admin-ui-refresh .admin-users-head,
body.admin-ui-refresh .admin-shop-panel__head,
body.admin-ui-refresh .admin-ticket-head,
body.admin-ui-refresh .admin-wiki-head {
  padding-bottom: 14px;
}

@media (max-width: 1200px) {
  body.admin-ui-refresh .admin-metrics-grid,
  body.admin-ui-refresh .performance-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}

@media (max-width: 980px) {
  body.admin-ui-refresh .admin-page {
    margin-top: 64px;
  }

  body.admin-ui-refresh .admin-shell {
    grid-template-columns: 1fr;
  }

  body.admin-ui-refresh .admin-sidebar {
    position: static;
    width: auto;
    border-width: 0 0 1px;
  }

  body.admin-ui-refresh .admin-content {
    grid-column: 1;
    padding: 16px;
  }

  body.admin-ui-refresh .admin-sidebar-toggle {
    display: none;
  }
}

/* Admin polish v3: header/sidebar alignment, lighter panels, audit stream. */
body.admin-ui-refresh {
  --admin-shell-bg: #111113;
  --admin-panel-bg: rgba(19, 19, 22, 0.88);
  --admin-panel-soft: rgba(255, 255, 255, 0.045);
  --admin-panel-line: rgba(255, 255, 255, 0.1);
  --admin-muted: #a1a1aa;
  --admin-text: #f4f4f5;
}

body.admin-ui-refresh .site-header {
  height: 64px;
  padding: 0 22px 0 0;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.99), rgba(12, 12, 14, 0.99)),
    var(--admin-shell-bg);
  border-bottom: 1px solid var(--admin-panel-line);
  box-shadow: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

body.admin-ui-refresh .site-header::before {
  display: none;
}

body.admin-ui-refresh .site-header__brand {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

body.admin-ui-refresh .site-header__logo {
  width: 30px;
  height: 30px;
}

body.admin-ui-refresh .site-header__auth {
  margin-left: auto;
}

body.admin-ui-refresh .site-header.site-header--admin-condensed {
  transform: translateY(-64px);
  opacity: 0;
}

body.admin-ui-refresh.admin-header-condensed .admin-sidebar {
  top: 0;
  height: 100vh;
  padding-top: 14px;
}

body.admin-ui-refresh.admin-header-condensed .admin-sidebar-toggle {
  top: 14px;
}

body.admin-ui-refresh .admin-sidebar {
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.99), rgba(12, 12, 14, 0.99)),
    var(--admin-shell-bg);
}

body.admin-ui-refresh .admin-nav,
body.admin-ui-refresh .admin-nav-group__content {
  gap: 6px;
}

body.admin-ui-refresh .admin-nav-group__toggle,
body.admin-ui-refresh .admin-nav__item {
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.15;
}

body.admin-ui-refresh .admin-nav__label,
body.admin-ui-refresh .admin-nav-group__toggle > span:first-child {
  font-size: 15px;
  font-weight: 700;
}

body.admin-ui-refresh .admin-nav__item {
  min-height: 44px;
  padding: 10px 12px;
}

body.admin-ui-refresh .admin-nav-group__toggle {
  min-height: 38px;
  padding: 9px 10px;
}

body.admin-ui-refresh .admin-content > .card:not(.admin-screenshots-panel) {
  min-height: calc(100vh - 112px);
  border-radius: 16px !important;
  background: var(--admin-panel-bg) !important;
}

body.admin-ui-refresh .card-lite,
body.admin-ui-refresh .dashboard-panel-option,
body.admin-ui-refresh .admin-user-row,
body.admin-ui-refresh .admin-user-editor-card,
body.admin-ui-refresh .admin-user-inline-panel,
body.admin-ui-refresh .admin-user-data-item,
body.admin-ui-refresh .admin-catalog-card,
body.admin-ui-refresh .admin-promo-card,
body.admin-ui-refresh .ticket-card,
body.admin-ui-refresh .admin-wiki-help-card,
body.admin-ui-refresh .admin-wiki-card {
  border-radius: 14px !important;
}

body.admin-ui-refresh .admin-content .btn,
body.admin-ui-refresh .admin-content .admin-action-btn,
body.admin-ui-refresh .admin-content .admin-user-row__edit,
body.admin-ui-refresh .admin-content .admin-catalog-card__btn,
body.admin-ui-refresh .admin-content .ticket-icon-btn,
body.admin-ui-refresh .admin-sheet .btn {
  border-radius: 10px !important;
}

body.admin-ui-refresh .admin-build-settings {
  width: min(760px, 100%);
  margin-top: 12px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-ui-refresh .admin-build-settings .verify__title {
  margin: 0 0 12px;
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 800;
}

body.admin-ui-refresh .admin-build-file-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

body.admin-ui-refresh .admin-build-file-card {
  min-height: 148px;
  align-content: start;
  padding: 18px !important;
  border: 1px solid var(--admin-panel-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  cursor: pointer;
}

body.admin-ui-refresh .admin-build-file-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body.admin-ui-refresh .admin-build-file-card .item__label {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 800;
}

body.admin-ui-refresh .admin-build-file-card .verify__hint {
  min-height: 24px;
  color: var(--admin-muted);
  font-size: 13px;
}

body.admin-ui-refresh .admin-wiki-panel .admin-wiki-stage {
  min-height: 0;
}

body.admin-ui-refresh .admin-wiki-layout {
  gap: 16px;
}

body.admin-ui-refresh .admin-wiki-card {
  padding: 16px !important;
  border: 1px solid var(--admin-panel-line) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none !important;
}

body.admin-ui-refresh .admin-wiki-card h3 {
  margin-top: 3px;
  font-size: 18px;
}

body.admin-ui-refresh .admin-wiki-card__eyebrow,
body.admin-ui-refresh .admin-wiki-inline-note,
body.admin-ui-refresh .admin-wiki-mini__eyebrow,
body.admin-ui-refresh .admin-wiki-mini__footer {
  color: rgba(244, 244, 245, 0.52) !important;
}

body.admin-ui-refresh .admin-wiki-mini,
body.admin-ui-refresh .admin-wiki-mini__sidebar,
body.admin-ui-refresh .admin-wiki-mini__content,
body.admin-ui-refresh .admin-wiki-media-slot,
body.admin-ui-refresh .admin-wiki-settings-preview,
body.admin-ui-refresh .admin-wiki-help-card {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none !important;
}

body.admin-ui-refresh .admin-wiki-mini {
  border: 1px solid var(--admin-panel-line);
}

body.admin-ui-refresh .admin-wiki-mini__sidebar,
body.admin-ui-refresh .admin-wiki-mini__content {
  padding: 12px;
}

body.admin-ui-refresh .admin-wiki-help-grid {
  gap: 12px;
}

body.admin-ui-refresh .admin-wiki-help-card {
  padding: 14px !important;
}

body.admin-ui-refresh .admin-wiki-help-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

body.admin-ui-refresh .admin-screenshots-upload-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.admin-ui-refresh .admin-screenshots-upload-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

body.admin-ui-refresh .admin-screenshots-upload-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

body.admin-ui-refresh .admin-screenshots-upload-badge {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 30px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #e4e4e7;
  color: #111113;
  font-size: 10px;
  font-weight: 900;
}

body.admin-ui-refresh .admin-screenshots-upload-status {
  width: min(420px, 100%);
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(16, 16, 18, 0.86);
}

body.admin-ui-refresh .admin-screenshots-upload-status.hidden,
body.admin-ui-refresh .admin-screenshots-upload-badge.hidden {
  display: none;
}

body.admin-ui-refresh .admin-screenshots-upload-status__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--admin-text);
  font-size: 13px;
}

body.admin-ui-refresh .admin-screenshots-upload-status__head span {
  color: var(--admin-muted);
  font-weight: 700;
}

body.admin-ui-refresh .admin-screenshots-upload-status__bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body.admin-ui-refresh .admin-screenshots-upload-status__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e4e4e7;
  transition: width 0.18s ease;
}

body.admin-ui-refresh .admin-screenshots-panel {
  position: relative;
}

body.admin-ui-refresh .admin-screenshots-upload-btn.hidden {
  display: none;
}

body.admin-ui-refresh .admin-screenshots-upload-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.admin-ui-refresh .admin-screenshots-upload-btn:hover {
  background: transparent;
  transform: none;
}

body.admin-ui-refresh .admin-screenshots-upload-badge {
  --upload-progress: 0deg;
  position: relative;
  inset: auto;
  width: 38px;
  height: 38px;
  min-width: 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background:
    conic-gradient(#e4e4e7 var(--upload-progress), rgba(255, 255, 255, 0.12) 0deg),
    #111113;
  color: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.32);
}

body.admin-ui-refresh .admin-screenshots-upload-badge::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #18181b;
}

body.admin-ui-refresh .admin-screenshots-upload-badge img {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

body.admin-ui-refresh .admin-screenshots-upload-btn.is-uploading .admin-screenshots-upload-badge img {
  animation: admin-upload-pulse 1.1s ease-in-out infinite;
}

body.admin-ui-refresh .admin-screenshots-upload-status {
  position: absolute;
  top: 76px;
  right: clamp(18px, 2vw, 28px);
  z-index: 18;
  width: min(360px, calc(100% - 36px));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: #1e1f22;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

body.admin-ui-refresh .admin-screenshots-upload-status::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: #1e1f22;
}

body.admin-ui-refresh .admin-screenshots-upload-status__head {
  position: relative;
  z-index: 1;
}

body.admin-ui-refresh .admin-screenshots-upload-status__head strong {
  color: #f2f3f5;
  font-size: 14px;
}

body.admin-ui-refresh .admin-screenshots-upload-status__head span {
  color: #949ba4;
  font-size: 12px;
}

body.admin-ui-refresh .admin-screenshots-upload-status__bar {
  position: relative;
  z-index: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.09);
}

body.admin-ui-refresh .admin-screenshots-upload-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

body.admin-ui-refresh .admin-screenshots-upload-file {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #2b2d31;
}

body.admin-ui-refresh .admin-screenshots-upload-file.is-error {
  background: rgba(127, 29, 29, 0.28);
}

body.admin-ui-refresh .admin-screenshots-upload-file__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

body.admin-ui-refresh .admin-screenshots-upload-file__head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 700;
}

body.admin-ui-refresh .admin-screenshots-upload-file__head b {
  color: #f2f3f5;
  font-size: 12px;
}

body.admin-ui-refresh .admin-screenshots-upload-file__meta {
  color: #949ba4;
  font-size: 11px;
}

body.admin-ui-refresh .admin-screenshots-upload-file__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body.admin-ui-refresh .admin-screenshots-upload-file__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e4e4e7;
  transition: width 0.18s ease;
}

@keyframes admin-upload-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.78; }
  50% { transform: translateY(-1px); opacity: 1; }
}

body.admin-ui-refresh .admin-audit-panel {
  gap: 14px;
  background: #1e1f22 !important;
}

body.admin-ui-refresh .admin-audit-panel .profile__title {
  margin-bottom: 2px !important;
}

body.admin-ui-refresh .admin-audit-toolbar {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: #2b2d31;
}

body.admin-ui-refresh .admin-audit-search,
body.admin-ui-refresh .admin-audit-select {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: #1e1f22 !important;
}

body.admin-ui-refresh .admin-audit-list {
  gap: 2px;
  padding: 8px 0 0;
}

body.admin-ui-refresh .admin-audit-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-ui-refresh .admin-audit-message:hover {
  background: #2b2d31 !important;
}

body.admin-ui-refresh .admin-audit-message__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  background: #313338;
}

body.admin-ui-refresh .admin-audit-message__body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.admin-ui-refresh .admin-audit-message__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

body.admin-ui-refresh .admin-audit-message__head strong {
  color: #f2f3f5;
  font-size: 15px;
  line-height: 1.25;
}

body.admin-ui-refresh .admin-audit-message__head span,
body.admin-ui-refresh .admin-audit-message__head time {
  color: #949ba4;
  font-size: 12px;
}

body.admin-ui-refresh .admin-audit-message__text {
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.4;
}

body.admin-ui-refresh .admin-audit-message__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

body.admin-ui-refresh .admin-audit-message__tags span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #313338;
  color: #b5bac1;
  font-size: 11px;
  font-weight: 700;
}

body.admin-ui-refresh .admin-audit-message__details {
  margin-top: 2px;
}

body.admin-ui-refresh .admin-audit-message__details summary {
  width: max-content;
  color: #b5bac1;
  font-size: 12px;
  cursor: pointer;
}

body.admin-ui-refresh .admin-audit-message__details div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

body.admin-ui-refresh .admin-audit-message__details span {
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 10px;
  background: #313338;
  color: #dbdee1;
  font-size: 12px;
  overflow-wrap: anywhere;
}

body.admin-ui-refresh .admin-audit-message__details b {
  color: #949ba4;
  font-size: 10px;
  text-transform: uppercase;
}

body.admin-ui-refresh .admin-content > .admin-audit-panel.card {
  align-content: start;
  background: #1e1f22 !important;
}

body.admin-ui-refresh .admin-audit-panel > .admin-users-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-content: start;
  gap: 12px;
  padding-bottom: 0;
}

body.admin-ui-refresh .admin-audit-toolbar {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 170px) minmax(150px, 170px) auto;
  align-items: center;
  justify-self: start;
}

body.admin-ui-refresh .admin-audit-search {
  width: 100%;
}

body.admin-ui-refresh .admin-audit-select {
  min-width: 0;
  width: 100%;
}

body.admin-ui-refresh .admin-audit-list {
  align-self: start;
  align-content: start;
}

@media (max-width: 980px) {
  body.admin-ui-refresh .site-header__brand {
    position: static;
    width: auto;
    justify-content: flex-start;
  }

  body.admin-ui-refresh.admin-header-condensed .admin-sidebar {
    top: auto;
    height: auto;
  }

  body.admin-ui-refresh .admin-build-file-grid {
    grid-template-columns: 1fr;
  }

  body.admin-ui-refresh .admin-audit-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Admin polish v6: wiki uploads, audit filters, Minecraft env settings. */
body.admin-ui-refresh .admin-screenshots-upload-status::before,
body.admin-ui-refresh .admin-wiki-upload-status::before {
  display: none;
}

body.admin-ui-refresh .admin-wiki-card--editor {
  position: relative;
}

body.admin-ui-refresh .admin-wiki-assets__tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.admin-ui-refresh .admin-wiki-upload-status {
  top: 72px;
  right: 16px;
}

body.admin-ui-refresh .admin-content > .admin-audit-panel.card {
  align-content: start;
}

body.admin-ui-refresh .admin-audit-panel > .admin-users-head {
  grid-template-columns: minmax(0, 1fr) minmax(620px, 760px);
  align-items: start;
}

body.admin-ui-refresh .admin-audit-toolbar {
  width: min(760px, 100%);
  justify-self: end;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 170px) minmax(150px, 170px) auto;
}

body.admin-ui-refresh.admin-minecraft-unavailable #group-minecraft-content {
  display: none;
}

body.admin-ui-refresh .admin-nav__warning--error {
  margin-left: auto;
  width: 17px;
  height: 17px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.admin-ui-refresh .admin-nav__warning--error img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(38%) sepia(85%) saturate(2580%) hue-rotate(335deg) brightness(104%) contrast(95%);
}

body.admin-ui-refresh.admin-minecraft-unavailable #group-minecraft-toggle {
  color: #f4f4f5;
}

body.admin-ui-refresh .admin-env-settings {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body.admin-ui-refresh .admin-env-settings__btn {
  min-height: 86px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--admin-panel-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--admin-text);
  text-align: left;
  cursor: pointer;
}

body.admin-ui-refresh .admin-env-settings__btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

body.admin-ui-refresh .admin-env-settings__btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

body.admin-ui-refresh .admin-env-settings__btn span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.admin-ui-refresh .admin-env-settings__btn strong {
  font-size: 15px;
}

body.admin-ui-refresh .admin-env-settings__btn small {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.35;
}

body.admin-ui-refresh .admin-env-dialog {
  width: min(620px, calc(100% - 32px));
}

body.admin-ui-refresh .admin-env-form {
  gap: 14px;
}

body.admin-ui-refresh .admin-env-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.admin-ui-refresh .admin-env-field {
  display: grid;
  gap: 7px;
}

body.admin-ui-refresh .admin-env-field > span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

body.admin-ui-refresh .admin-env-field--check {
  min-height: 42px;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--admin-text);
}

body.admin-ui-refresh .admin-env-field--check input {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  body.admin-ui-refresh .admin-audit-panel > .admin-users-head,
  body.admin-ui-refresh .admin-env-settings,
  body.admin-ui-refresh .admin-env-form__grid {
    grid-template-columns: 1fr;
  }

  body.admin-ui-refresh .admin-audit-toolbar {
    justify-self: stretch;
  }
}

.mw-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 1200;
  transform: translateY(-2px);
}

.mw-notifications.hidden,
.mw-notifications__panel.hidden,
.mw-notifications__dot.hidden,
.mw-gift-modal.hidden {
  display: none !important;
}

.mw-notifications__button {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mw-notifications__button:hover,
.mw-notifications__button[aria-expanded="true"] {
  background: transparent;
  opacity: 0.86;
  transform: translateY(-1px);
}

.mw-notifications__button img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.mw-notifications__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border: 2px solid #151515;
  border-radius: 999px;
  background: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
}

.mw-notifications__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(428px, calc(100vw - 24px));
  max-height: min(610px, calc(100vh - 96px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #141414;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
  min-width: 0;
}

.mw-notifications__panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mw-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #171717;
}

.mw-notifications__head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mw-notifications__head strong {
  font-size: 19px;
  line-height: 1.2;
  color: #fff;
}

.mw-notifications__head span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}

.mw-notifications__read {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mw-notifications__read:hover {
  background: rgba(255, 255, 255, 0.095);
  color: #fff;
}

.mw-notifications__list {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 9px;
}

.mw-notification {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
}

.mw-notification + .mw-notification {
  margin-top: 4px;
}

.mw-notification.is-unread {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.mw-notification.is-unread::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff3b3b;
}

.mw-notification__top {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-left: 8px;
}

.mw-notification__top strong {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mw-notification__top time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 700;
}

.mw-notification p {
  min-width: 0;
  margin: 0;
  padding-left: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mw-notifications__action {
  justify-self: stretch;
  min-width: 0;
  width: 100%;
  margin: 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 11px 18px;
  background: #f4f4f4;
  color: #111;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mw-notifications__action:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.mw-notifications__empty {
  min-height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.mw-notifications__empty strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.mw-notifications__empty span {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.4;
}

.mw-gift-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.mw-gift-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mw-gift-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.mw-gift-modal__dialog {
  position: relative;
  width: min(470px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #141414;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  color: #fff;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}

.mw-gift-modal.is-open .mw-gift-modal__dialog {
  transform: translateY(0) scale(1);
}

.mw-gift-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb, 255, 255, 255), 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%);
}

.mw-gift-modal__close {
  position: absolute;
  top: 16px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mw-gift-modal__close:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.mw-gift-modal__head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 28px 28px 0;
}

.mw-gift-modal__eyebrow {
  width: max-content;
  border: 1px solid rgba(var(--accent-rgb, 255, 255, 255), 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(var(--accent-rgb, 255, 255, 255), 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.mw-gift-modal__head h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}

.mw-gift-modal__head p,
.mw-gift-modal__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.mw-gift-modal__list {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 9px;
  padding: 0 16px;
}

.mw-gift-modal__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.mw-gift-modal__item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.mw-gift-modal__item div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mw-gift-modal__item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
}

.mw-gift-modal__item span,
.mw-gift-modal__empty {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1.35;
}

.mw-gift-modal__empty {
  padding: 22px 12px;
  text-align: center;
}

.mw-gift-modal__note {
  position: relative;
  z-index: 1;
  margin: 0 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 15px;
}

@media (max-width: 640px) {
  .mw-notifications {
    position: static;
  }

  .mw-notifications__panel {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 92px);
    transform-origin: top center;
  }
}

/* Final wiki GitBook reference override */
body.wiki-page {
  margin: 0 !important;
  overflow-x: hidden;
  background: #1f1f1f !important;
  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.wiki-page .wiki-app {
  --wiki-bg: #1f1f1f;
  --wiki-panel: #2b2b2b;
  --wiki-border: #3f3f3f;
  --wiki-muted: #a4a4a4;
  min-height: 100vh;
  background: var(--wiki-bg);
}

body.wiki-page .wiki-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 65px;
  display: grid;
  grid-template-columns: auto minmax(280px, 386px);
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid #303030;
  background: rgba(31, 31, 31, 0.96);
  backdrop-filter: blur(14px);
}

body.wiki-page .wiki-brand {
  width: auto;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

body.wiki-page .wiki-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
}

body.wiki-page .wiki-brand span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

body.wiki-page .wiki-search {
  width: 100%;
  max-width: 386px;
  justify-self: end;
  height: 39px;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid #454545;
  border-radius: 8px;
  background: #1d1d1d;
  box-shadow: none;
}

body.wiki-page .wiki-search:focus-within {
  border-color: color-mix(in srgb, var(--wiki-accent) 48%, #454545);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wiki-accent) 16%, transparent);
}

body.wiki-page .wiki-search__icon,
body.wiki-page .wiki-search__icon img {
  width: 18px;
  height: 18px;
}

body.wiki-page .wiki-search__icon img {
  filter: brightness(0) invert(0.72);
}

body.wiki-page .wiki-search input {
  color: #dedede;
  font: 600 14px/1 Inter, "Segoe UI", Arial, sans-serif;
}

body.wiki-page .wiki-search input::placeholder {
  color: #8e8e8e;
}

body.wiki-page .wiki-search__hint {
  height: 22px;
  min-width: 42px;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  background: #242424;
  color: #c9c9c9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

body.wiki-page .wiki-layout {
  width: min(1380px, calc(100vw - 48px));
  min-height: calc(100vh - 65px);
  grid-template-columns: 280px minmax(0, 768px);
  gap: 56px;
  margin: 0 auto;
  padding: 24px 0 38px;
}

body.wiki-page .wiki-sidebar__inner {
  position: sticky;
  top: 89px;
  max-height: calc(100vh - 112px);
  display: block;
  overflow-y: auto;
  padding: 9px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a transparent;
}

body.wiki-page .wiki-nav {
  gap: 12px;
}

body.wiki-page .wiki-nav-group {
  gap: 10px;
}

body.wiki-page .wiki-nav-section-toggle {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

body.wiki-page .wiki-nav-section-toggle:hover {
  background: rgba(255, 255, 255, 0.045);
}

body.wiki-page .wiki-nav-section-toggle > .wiki-nav-chevron {
  display: block;
  color: #9a9a9a;
  opacity: 0.78;
  transform: translateX(0) rotate(0deg);
  transition: opacity 0.16s ease, transform 0.2s ease, color 0.16s ease;
}

body.wiki-page .wiki-nav-section-toggle.is-open > .wiki-nav-chevron {
  opacity: 0;
  transform: translateX(-4px) rotate(90deg);
}

body.wiki-page .wiki-nav-section-toggle:hover > .wiki-nav-chevron,
body.wiki-page .wiki-nav-section-toggle.is-open:hover > .wiki-nav-chevron {
  opacity: 0.78;
}

body.wiki-page .wiki-nav-section-toggle:hover > .wiki-nav-chevron {
  transform: translateX(0) rotate(0deg);
}

body.wiki-page .wiki-nav-section-toggle.is-open:hover > .wiki-nav-chevron {
  transform: translateX(0) rotate(90deg);
}

body.wiki-page .wiki-nav-section-toggle:hover > .wiki-nav-chevron {
  color: #d0d0d0;
}

body.wiki-page .wiki-nav-section .wiki-nav-group__title,
body.wiki-page .wiki-nav-section .wiki-nav-section-toggle .wiki-nav-group__title {
  padding: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.wiki-page .wiki-nav-section .wiki-nav-group__title img {
  display: none;
}

body.wiki-page .wiki-nav-group__pages,
body.wiki-page .wiki-nav-group__pages.is-open {
  display: grid;
  gap: 2px;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  border-left: 0;
  transform: translateY(-4px);
  transition: max-height 0.24s ease, margin 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
}

body.wiki-page .wiki-nav-group__pages.is-open {
  max-height: 900px;
  margin: 0;
  opacity: 1;
  transform: translateY(0);
}

body.wiki-page .wiki-nav-folder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  transition: background 0.16s ease;
}

body.wiki-page .wiki-nav-folder-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

body.wiki-page .wiki-nav-link,
body.wiki-page .wiki-nav-link--folder {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a8a8a8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: none;
  transition: background 0.16s ease, color 0.16s ease;
}

body.wiki-page .wiki-nav-link:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #d5d5d5;
}

body.wiki-page .wiki-nav-link--folder:hover,
body.wiki-page .wiki-nav-folder-row:hover .wiki-nav-link--folder {
  background: transparent !important;
  color: #d5d5d5;
}

body.wiki-page .wiki-nav-link:not(.wiki-nav-link--folder).is-active,
body.wiki-page .wiki-nav-children .wiki-nav-link:not(.wiki-nav-link--folder).is-active {
  background: transparent !important;
  color: var(--wiki-accent) !important;
  box-shadow: none !important;
}

body.wiki-page .wiki-nav-link:not(.wiki-nav-link--folder).is-active:hover,
body.wiki-page .wiki-nav-children .wiki-nav-link:not(.wiki-nav-link--folder).is-active:hover {
  background: color-mix(in srgb, var(--wiki-accent) 16%, transparent) !important;
  color: #f5fbff !important;
}

body.wiki-page .wiki-nav-link:not(.wiki-nav-link--folder).is-active:hover .wiki-nav-link__label span,
body.wiki-page .wiki-nav-children .wiki-nav-link:not(.wiki-nav-link--folder).is-active:hover .wiki-nav-link__label span {
  color: #f5fbff !important;
}

body.wiki-page .wiki-nav-link:not(.wiki-nav-link--folder).is-active:hover .wiki-nav-link__icon,
body.wiki-page .wiki-nav-children .wiki-nav-link:not(.wiki-nav-link--folder).is-active:hover .wiki-nav-link__icon {
  background: #f5fbff !important;
  opacity: 0.95;
}

body.wiki-page .wiki-nav-link--folder.is-active {
  background: transparent !important;
  color: #a8a8a8 !important;
  box-shadow: none !important;
}

body.wiki-page .wiki-nav-link--folder.is-active:hover {
  background: rgba(255, 255, 255, 0.045) !important;
  color: #d5d5d5 !important;
}

body.wiki-page .wiki-nav-link.is-active::before,
body.wiki-page .wiki-nav-children .wiki-nav-link.is-active::before {
  display: none;
}

body.wiki-page .wiki-nav-link__label {
  gap: 12px;
}

body.wiki-page .wiki-nav-link__label span {
  color: inherit !important;
}

body.wiki-page .wiki-nav-link__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor !important;
  opacity: 0.72;
}

body.wiki-page .wiki-nav-folder-toggle {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #808080;
  opacity: 1;
  transform: translateX(0);
  transition: color 0.16s ease;
}

body.wiki-page .wiki-nav-link--folder:hover + .wiki-nav-folder-toggle,
body.wiki-page .wiki-nav-folder-row:hover .wiki-nav-folder-toggle,
body.wiki-page .wiki-nav-folder-toggle:hover {
  background: transparent;
  color: #d5d5d5;
}

body.wiki-page .wiki-nav-children {
  display: grid;
  gap: 2px;
  max-height: 0;
  margin: 0 0 0 20px;
  padding-left: 14px;
  overflow: hidden;
  opacity: 0;
  border-left: 1px solid #3a3a3a !important;
  transform: translateY(-4px);
  transition: max-height 0.24s ease, margin 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
}

body.wiki-page .wiki-nav-children.is-open {
  max-height: 520px;
  margin: 2px 0 4px 20px;
  opacity: 1;
  transform: translateY(0);
}

body.wiki-page .wiki-content {
  width: 100%;
  max-width: 768px;
}

body.wiki-page .wiki-article {
  min-height: calc(100vh - 127px);
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.wiki-page .wiki-article__head {
  display: grid;
  gap: 15px;
  margin: 0 0 28px;
}

body.wiki-page .wiki-article__breadcrumb {
  justify-self: start;
  color: var(--wiki-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

body.wiki-page .wiki-article__title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

body.wiki-page .wiki-article__title-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: #8f949d;
  -webkit-mask-image: var(--wiki-page-title-icon);
  mask-image: var(--wiki-page-title-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body.wiki-page .wiki-article__head h1,
body.wiki-page .wiki-markdown > h1:first-child {
  margin: 0;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

body.wiki-page .wiki-markdown {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

body.wiki-page .wiki-markdown h1,
body.wiki-page .wiki-markdown h2,
body.wiki-page .wiki-markdown h3,
body.wiki-page .wiki-markdown h4 {
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

body.wiki-page .wiki-markdown h2 {
  font-size: 26px;
}

body.wiki-page .wiki-markdown h3 {
  font-size: 21px;
}

body.wiki-page .wiki-markdown p,
body.wiki-page .wiki-markdown ul,
body.wiki-page .wiki-markdown ol {
  margin: 0 0 16px;
}

body.wiki-page .wiki-callout,
body.wiki-page .wiki-markdown blockquote {
  margin: 24px 0;
  padding: 18px 16px;
  border: 0;
  border-radius: 6px;
  background: #2b2b2b !important;
  box-shadow: none !important;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

body.wiki-page .wiki-callout__icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  background: #8e8e8e !important;
}

body.wiki-page .wiki-code {
  border: 1px solid #343434;
  border-radius: 8px;
  background: #161616;
  box-shadow: none;
}

body.wiki-page .wiki-markdown code {
  border-radius: 5px;
  background: #2b2b2b;
  color: #f4f4f4;
}

body.wiki-page .wiki-details,
body.wiki-page .wiki-details-group {
  border: 1px solid #303030;
  border-radius: 6px;
  background: #1f1f1f;
  box-shadow: none;
}

body.wiki-page .wiki-details summary {
  background: #1f1f1f;
  color: #e6e6e6;
}

body.wiki-page .wiki-details[open] summary,
body.wiki-page .wiki-details summary:hover {
  background: #252525;
  color: #ffffff;
}

body.wiki-page .wiki-details__body {
  background: #1b1b1b;
  color: #d8d8d8;
}

body.wiki-page .wiki-details-group .wiki-details {
  border: 0;
  background: transparent;
}

body.wiki-page .wiki-table-wrap {
  border: 1px solid #343434;
  border-radius: 8px;
}

body.wiki-page .wiki-table th,
body.wiki-page .wiki-table td {
  border-bottom: 1px solid #343434;
  color: #e9e9e9;
}

body.wiki-page .wiki-table th {
  background: #252525;
  color: #fff;
}

body.wiki-page .wiki-page-card,
body.wiki-page .wiki-next-card {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}

body.wiki-page .wiki-page-card {
  margin: 18px 0 0;
}

body.wiki-page .wiki-next-card {
  margin-top: auto;
}

body.wiki-page .wiki-page-card:hover,
body.wiki-page .wiki-next-card:hover {
  border-color: #555;
  background: rgba(255, 255, 255, 0.025);
}

body.wiki-page .wiki-next-card small {
  display: block;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--wiki-accent) 62%, #fff);
  font-size: 12px;
  line-height: 1.2;
}

body.wiki-page .wiki-next-card strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

body.wiki-page .wiki-next-card__arrow,
body.wiki-page .wiki-page-card__arrow {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
}

body.wiki-page .wiki-next-card__arrow::before,
body.wiki-page .wiki-page-card__arrow::before {
  content: "";
  position: absolute;
  inset: 3px 5px;
  border-top: 1.8px solid #8f8f8f;
  border-right: 1.8px solid #8f8f8f;
  transform: rotate(45deg);
}

body.wiki-page .wiki-nav-chevron {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.wiki-page .wiki-nav-folder-toggle.is-open .wiki-nav-chevron {
  transform: translateX(0) rotate(90deg);
  opacity: 0.9;
}

body.wiki-page .wiki-nav-section-toggle.is-open .wiki-nav-chevron {
  transform: translateX(-4px) rotate(90deg);
  opacity: 0;
}

body.wiki-page .wiki-nav-section-toggle.is-open:hover .wiki-nav-chevron {
  transform: translateX(0) rotate(90deg);
  opacity: 0.78;
}

body.wiki-page .wiki-nav-link.wiki-nav-link--folder.is-active,
body.wiki-page .wiki-nav-children .wiki-nav-link.wiki-nav-link--folder.is-active,
body.wiki-page .wiki-nav-link.wiki-nav-link--folder.is-active .wiki-nav-link__label span,
body.wiki-page .wiki-nav-children .wiki-nav-link.wiki-nav-link--folder.is-active .wiki-nav-link__label span {
  color: #a8a8a8 !important;
}

body.wiki-page .wiki-nav-link.wiki-nav-link--folder.is-active .wiki-nav-link__icon,
body.wiki-page .wiki-nav-children .wiki-nav-link.wiki-nav-link--folder.is-active .wiki-nav-link__icon {
  background: currentColor !important;
}

body.wiki-page .wiki-nav-link.wiki-nav-link--folder.is-active:hover,
body.wiki-page .wiki-nav-children .wiki-nav-link.wiki-nav-link--folder.is-active:hover,
body.wiki-page .wiki-nav-folder-row:hover .wiki-nav-link.wiki-nav-link--folder.is-active,
body.wiki-page .wiki-nav-link.wiki-nav-link--folder.is-active:hover .wiki-nav-link__label span,
body.wiki-page .wiki-nav-children .wiki-nav-link.wiki-nav-link--folder.is-active:hover .wiki-nav-link__label span,
body.wiki-page .wiki-nav-folder-row:hover .wiki-nav-link.wiki-nav-link--folder.is-active .wiki-nav-link__label span {
  color: #d5d5d5 !important;
}

body.wiki-page .wiki-nav-folder-toggle:hover,
body.wiki-page .wiki-nav-link--folder:hover + .wiki-nav-folder-toggle,
body.wiki-page .wiki-nav-folder-row:hover .wiki-nav-folder-toggle:hover {
  background: transparent !important;
  color: #d0d0d0 !important;
}

body.wiki-page .wiki-toc {
  display: none;
}

@media (max-width: 1180px) {
  body.wiki-page .wiki-header {
    grid-template-columns: auto minmax(240px, 386px);
  }

  body.wiki-page .wiki-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 860px) {
  body.wiki-page .wiki-header {
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 12px 16px;
  }

  body.wiki-page .wiki-layout {
    width: min(100% - 32px, 768px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 18px;
  }

  body.wiki-page .wiki-sidebar__inner {
    position: static;
    max-height: 280px;
    padding-bottom: 12px;
    border-bottom: 1px solid #303030;
  }

  body.wiki-page .wiki-article {
    min-height: auto;
    padding-bottom: 28px;
  }
}

@media (max-width: 560px) {
  body.wiki-page .wiki-header {
    grid-template-columns: 1fr;
  }

  body.wiki-page .wiki-brand {
    display: none;
  }

  body.wiki-page .wiki-article__title-row {
    gap: 13px;
  }

  body.wiki-page .wiki-article__title-icon {
    width: 30px;
    height: 30px;
  }

  body.wiki-page .wiki-article__head h1,
  body.wiki-page .wiki-markdown > h1:first-child {
    font-size: 31px;
  }
}
