/* ChibiCraft — лёгкая версия без Bulma */
:root {
  --cc-dark-bg: #0d1117;
  --cc-darker: #161b22;
  --cc-card-bg: #21262d;
  --cc-border: #30363d;
  --cc-text: #e6edf3;
  --cc-text-muted: #8b949e;
  --cc-accent: #ff5a00;
  --cc-accent-hover: #e82900;
  --cc-purple: #a371f7;
  --cc-green: #3fb950;
  --cc-gold: #d29922;
  --container: min(1200px, 100% - 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Fedra Sans Pro', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  background: var(--cc-dark-bg);
  color: var(--cc-text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.row--center {
  align-items: center;
}

.row--vcenter {
  align-items: center;
}

.col {
  flex: 1;
  min-width: 0;
}

.col--half {
  flex: 0 0 100%;
}

.col--third {
  flex: 0 0 100%;
}

.section {
  padding: 3rem 0;
}

.section--dark {
  background: var(--cc-darker);
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
p {
  margin: 0 0 0.5rem;
  color: var(--cc-text);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.subtitle {
  color: var(--cc-text-muted);
  font-size: 1rem;
}

.subtitle--sm {
  font-size: 0.85rem;
}

.subtitle--xs {
  font-size: 0.8rem;
}

strong {
  font-weight: 600;
}

/* Nav */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: transparent;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__mob-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nav__logo {
  color: var(--cc-text);
  font-weight: 700;
  font-size: 1.35rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 3px 14px rgba(0, 0, 0, 0.9),
    0 6px 28px rgba(0, 0, 0, 0.75);
  text-decoration: none;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.nav__logo:hover {
  color: var(--cc-accent);
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--cc-text);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 3px 14px rgba(0, 0, 0, 0.9),
    0 6px 28px rgba(0, 0, 0, 0.75);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-accent);
}

.nav__glass {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1rem;
  padding: 0.35rem 0.5rem;
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav__menu--start {
  margin-right: auto;
}

.nav__link {
  color: var(--cc-text);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.nav__menu .nav__link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

button.nav__link {
  font: inherit;
  margin: 0;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-accent);
}

.nav__avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav__link--profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__toggle--profile {
  padding: 0.25rem;
}

.nav__toggle--profile .nav__avatar-fallback {
  display: none;
}

.nav__toggle--profile .nav__avatar-mini {
  width: 32px;
  height: 32px;
}

.nav__link--donate {
  text-align: center;
  color: rgb(255, 255, 255);
  font-size: 10vw;
  outline: none;
  text-shadow:
    0 0 20px crimson,
    0 0 20px crimson,
    0 0 10px crimson,
    5px -10px 10px orange,
    -5px -10px 10px yellow;
  animation: 2s fire-animation infinite alternate linear;
}

@keyframes fire-animation {
  0%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 5px orange,
    0 0 5px darkorange,
    -2px -2px 2px yellow,
    5px -5px 5px yellow; 
  }
  25%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 10px orange,
    -2px -2px 2px yellow,
    2px -5px 5px yellow,
    -2px -5px 5px yellow; 
  }
  50%   { 
    text-shadow: 0 10px 20px crimson, 0 0 20px red,
    0 0 5px orange,
    0 0 5px darkorange,
    -2px -2px 2px yellow,
    5px -5px 5px yellow; 
  }
  75%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 10px orange,
    -2px -2px 2px yellow,
    2px -5px 5px yellow,
    -2px -5px 5px yellow; 
  }
  100%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 5px orange,
    0 0 5px darkorange,
    -2px -2px 2px yellow,
    5px -5px 5px yellow; 
  }
}

.nav__link--donate:hover {
  color: rgb(240, 200, 191);
  text-shadow: 0 0 16px rgba(255, 88, 88, 0.8), 0 0 32px rgba(88, 166, 255, 0.45);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  padding: 0.5rem;
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  z-index: 50;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.is-active .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--cc-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav__dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-accent);
}

/* Карточка профиля в выпадающем меню: ник и аватар — не пункты меню */
.nav__dropdown-menu .profile-card a.profile-card__name-link,
.nav__dropdown-menu .profile-card a.profile-card__avatar-link {
  display: inline;
  padding: 0;
  margin: 0;
  font-size: inherit;
  border-radius: 0;
  color: inherit;
  text-decoration: none;
}

.nav__dropdown-menu .profile-card a.profile-card__avatar-link {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
  border-radius: 50%;
  overflow: hidden;
}

.nav__dropdown-menu .profile-card a.profile-card__name-link:hover,
.nav__dropdown-menu .profile-card a.profile-card__name-link:focus,
.nav__dropdown-menu .profile-card a.profile-card__name-link:active,
.nav__dropdown-menu .profile-card a.profile-card__avatar-link:hover,
.nav__dropdown-menu .profile-card a.profile-card__avatar-link:focus,
.nav__dropdown-menu .profile-card a.profile-card__avatar-link:active {
  background: transparent;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.nav__dropdown-label {
  display: block;
  padding: 0.35rem 0.75rem 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cc-text-muted);
}

.nav__dropdown-other {
  min-width: 360px;
}

.dropdown-other-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.nav__dropdown-group {
  min-width: 0;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--cc-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--cc-accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--cc-accent);
  color: var(--cc-accent);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.hide-desk {
  display: block;
}

.hide-mob {
  display: none;
}

@media (min-width: 1024px) {
  .hide-desk {
    display: none;
  }

  header.nav {
    align-items: center;
  }

  .hide-mob {
    display: block;
  }

  .nav__wrap {
    display: flex;
    align-items: center;
    flex-grow: 1;
    flex-basis: auto;
    order: 0;
  }

  #navMenu {
    display: flex;
    flex-grow: 1;
  }
}

@media (max-width: 1023px) {
  .nav__brand {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    order: 0;
  }

  .nav__mob-actions {
    display: flex;
  }

  .nav__wrap {
    flex: 1 1 100%;
    order: 1;
  }

  .nav__glass {
    flex-direction: column;
    margin: 1rem;
    padding: 0.5rem;
  }

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

  .nav__menu--start {
    margin-right: 0;
  }

  .nav__link {
    width: 100%;
    text-align: center;
  }

  #navMenu {
    display: none;
  }

  #navMenu.is-active {
    display: block;
  }

  #navMenu.is-active .nav__glass {
    display: flex;
  }

  .col--half {
    flex: 0 0 100%;
  }

  /* Прочее: по центру, 1 столбец */
  .nav__dropdown .nav__dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .nav__dropdown-other {
    min-width: 200px;
    max-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .dropdown-other-inner {
    grid-template-columns: 1fr;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.hero__body {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero__body .container {
  padding-top: 3.6rem;
}

.hero__body .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.hero__body .row .col:nth-child(2) {
  flex: none;
}

@media (max-width: 900px) {
  .hero__body .row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__body .row .col:nth-child(1) {
    order: 1;
  }

  .hero__body .row .col:nth-child(2) {
    order: 2;
  }

  .hero__body .row .col:nth-child(3) {
    order: 3;
  }
}

.hero__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}


.hero__content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--cc-text-muted);
}


.btn--start {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--cc-accent) 0%, var(--cc-purple) 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(88, 166, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 166, 255, 0.5);
  color: #fff;
}

/* Server page hero */
.server-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--cc-dark-bg);
}

.server-hero__bg {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* Фон масштабируется по ширине страницы, высота — по пропорциям */
.server-hero__bg img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.server-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(13, 17, 23, 0) 0%, rgba(13, 17, 23, 0.55) 60%, rgba(13, 17, 23, 0.9) 100%),
    linear-gradient(to bottom, rgba(13, 17, 23, 0.35) 0%, rgba(13, 17, 23, 0.9) 100%);
  pointer-events: none;
}

.server-hero__body {
  position: relative;
  z-index: 3;
  margin-top: 8rem;
  padding: 2.5rem 0 3rem;
}

.server-hero .container {
  max-width: 980px;
  padding-top: 0;
}

.server-hero__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.server-hero__logo {
  width: 80px;
  height: 80px;
}

.server-hero__title {
  font-size: 1.9rem;
  margin: 0 0 0.25rem;
}

.server-hero__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cc-text-muted);
}

.server-hero__online-wrap {
  margin-bottom: 1.5rem;
}

.server-hero__online {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.server-hero__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
}

.server-hero__online-max {
  opacity: 0.9;
}

.server-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.server-hero__stat {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-hero__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cc-text-muted);
  margin-bottom: 0.25rem;
}

.server-hero__stat-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cc-text);
}

.server-hero__description {
  font-size: 0.98rem;
  color: var(--cc-text-muted);
  line-height: 1.7;
}

.server-hero__description p {
  margin: 0 0 0.75rem;
}

.server-hero__description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .server-hero__body {
    padding: 2.25rem 0 2.75rem;
  }

  .server-hero__header {
    flex-direction: row;
    align-items: center;
  }

  .server-hero__title {
    font-size: 1.6rem;
  }

  .server-hero__stats {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Badges, tags */
.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--online {
  background: var(--cc-green);
  color: #fff;
}

.badge--tps {
  background: var(--cc-gold);
  color: #000;
}

.badge--record {
  background: var(--cc-purple);
  color: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--cc-card-bg);
  color: var(--cc-text);
  text-decoration: none;
}

.tag:hover {
  background: var(--cc-border);
  color: var(--cc-accent);
}

.tag--info {
  background: #238636;
  color: #fff;
}

.tag--success {
  background: #2ea043;
  color: #fff;
}

.tag--warn {
  background: #9e6a03;
  color: #000;
}

.tag--danger {
  background: #da3633;
  color: #fff;
}

.tag--link {
  background: #388bfd;
  color: #fff;
}

/* Card, panel */
.card {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--cc-text);
}

.card__body {
  padding: 1.25rem;
}

/* Одинаковая высота карточек в блоке серверов */
.row--equal-height { align-items: stretch; }
.row--equal-height .col { display: flex; }
.row--equal-height .card { flex: 1; display: flex; flex-direction: column; }
.row--equal-height .card__body { flex: 1; display: flex; flex-direction: column; }
.row--equal-height .card__body .btn { margin-top: auto; }

.panel {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 1rem;
  max-width: 320px;
  margin-left: auto;
}

/* Страницы с текстовым контентом (Политика конфиденциальности, Правила, Оферта) */
.page-text-section {
  min-height: 50vh;
}

.page-text-section__title {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cc-text);
}

.page-content-block {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  color: var(--cc-text);
  line-height: 1.65;
}

.page-content-block p {
  margin: 0 0 1rem;
  color: var(--cc-text);
}

.page-content-block p:last-child {
  margin-bottom: 0;
}

.page-content-block h1,
.page-content-block h2,
.page-content-block h3,
.page-content-block h4 {
  margin: 1.25rem 0 0.5rem;
  color: var(--cc-text);
  font-weight: 600;
}

.page-content-block h1:first-child,
.page-content-block h2:first-child,
.page-content-block h3:first-child,
.page-content-block h4:first-child {
  margin-top: 0;
}

.page-content-block ul,
.page-content-block ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.page-content-block li {
  margin-bottom: 0.25rem;
}

.page-content-block a {
  color: var(--cc-accent);
  text-decoration: none;
}

.page-content-block a:hover {
  color: var(--cc-accent-hover);
  text-decoration: underline;
}

.page-content-block hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--cc-border);
}

.page-text-section__label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--cc-text-muted);
}

.page-content-block__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.page-content-block__body {
  color: var(--cc-text);
  line-height: 1.65;
}

.page-content-block__body p {
  margin: 0 0 1rem;
}

.page-content-block__body p:last-child {
  margin-bottom: 0;
}

/* Donate page hero */
.donate-hero {
  align-items: center;
  gap: 2rem;
}

.donate-hero__text {
  text-align: left;
}

.donate-hero__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.donate-hero__subtitle {
  margin: 0;
  color: var(--cc-text-muted, #8b949e);
  font-size: 1rem;
}

.donate-hero__balance-wrap {
  flex: 0 0 auto;
}

.donate-balance {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donate-balance__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.donate-balance__label {
  font-weight: 600;
  font-size: 1rem;
}

.donate-balance__sum {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cc-accent);
}

.donate-balance__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.donate-balance__bonus {
  font-size: 0.8rem;
  color: var(--cc-text-muted, #8b949e);
  max-width: 220px;
}

@media (max-width: 599px) {
  .donate-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .donate-hero__balance-wrap {
    width: 100%;
  }

  .donate-balance {
    min-width: 0;
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
  }

  .donate-balance__row {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .donate-balance__label {
    font-size: 0.9rem;
  }

  .donate-balance__sum {
    font-size: 1.25rem;
  }

  .donate-balance__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .donate-balance__bonus {
    max-width: none;
    font-size: 0.75rem;
    order: 1;
  }

  .donate-balance__actions .btn {
    order: 2;
    width: 100%;
    justify-content: center;
  }
}

/* Страница доната: подсказки у слотов, тени карточек и др. не раздувают document scroll по X */
.page-donate {
  overflow-x: clip;
  max-width: 100%;
}

/* Donate carousel */
.donate-carousel-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-carousel {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  touch-action: pan-y pan-x;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.donate-carousel::-webkit-scrollbar {
  display: none;
}

@media (max-width: 599px) {
  .donate-carousel {
    cursor: grab;
    user-select: none;
  }
  .donate-carousel:active {
    cursor: grabbing;
  }
  .donate-carousel__track {
    gap: 16px;
    padding-top: 1.5rem;
  }
  .donate-card {
    flex: 0 0 140px;
    padding: 0.25rem;
  }
  .donate-card__img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }
  .donate-card--selected .donate-card__img-wrap {
    box-shadow: 0 0 0 3px var(--donate-accent), 0 0 20px 6px var(--donate-accent);
  }
  .donate-card__badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  .donate-card__price {
    font-size: 0.8rem;
  }
}

.donate-carousel__track {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 2rem 0 0.5rem;
  min-width: min-content;
}

.donate-card {
  flex: 0 0 256px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: transparent;
  padding: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.donate-card__img-wrap {
  width: 256px;
  height: 256px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-darker);
  transition: box-shadow 0.2s;
}

.donate-card--selected .donate-card__img-wrap {
  box-shadow: 0 0 0 5px var(--donate-accent), 0 0 30px 8px var(--donate-accent);
}

.donate-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.donate-card__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.donate-card__price {
  font-size: 1rem;
  color: var(--cc-text-muted);
  text-align: center;
}

.donate-card--vip {
  --donate-accent: #e67e22;
}

.donate-card--vip .donate-card__badge {
  background: rgba(230, 126, 34, 0.25);
  color: #e67e22;
}

.donate-card--premium {
  --donate-accent: #9b59b6;
}

.donate-card--premium .donate-card__badge {
  background: rgba(155, 89, 182, 0.25);
  color: #9b59b6;
}

.donate-card--deluxe {
  --donate-accent: #e91e8c;
}

.donate-card--deluxe .donate-card__badge {
  background: rgba(233, 30, 140, 0.25);
  color: #e91e8c;
}

.donate-card--elite {
  --donate-accent: #3498db;
}

.donate-card--elite .donate-card__badge {
  background: rgba(52, 152, 219, 0.25);
  color: #3498db;
}

.donate-card--legend {
  --donate-accent: #e74c3c;
}

.donate-card--legend .donate-card__badge {
  background: rgba(231, 76, 60, 0.25);
  color: #e74c3c;
}

/* Donate: что в комплекте + выбор сервера */
.donate-combo-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-combo__heading {
  font-size: 1rem;
  color: var(--cc-text-muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.donate-combo__arrow {
  font-size: 0.75rem;
  opacity: 0.8;
}

.donate-combo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.donate-combo__badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.donate-combo__privilege-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.donate-combo__privilege-badge--vip { background: rgba(230, 126, 34, 0.25); color: #e67e22; }
.donate-combo__privilege-badge--premium { background: rgba(155, 89, 182, 0.25); color: #9b59b6; }
.donate-combo__privilege-badge--deluxe { background: rgba(233, 30, 140, 0.25); color: #e91e8c; }
.donate-combo__privilege-badge--elite { background: rgba(52, 152, 219, 0.25); color: #3498db; }
.donate-combo__privilege-badge--legend { background: rgba(231, 76, 60, 0.25); color: #e74c3c; }

.donate-combo__kits {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-server-select {
  position: relative;
}

.donate-server-select__trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  color: var(--cc-text);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.donate-server-select__trigger:hover {
  border-color: var(--cc-accent);
}

.donate-server-select.is-open .donate-server-select__trigger {
  border-color: var(--cc-accent);
}

.donate-server-select__trigger:focus-visible {
  outline: none;
  border-color: var(--cc-accent);
}

.donate-server-select__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.donate-server-select__name {
  flex: 1;
  text-align: left;
}

.donate-server-select__icon {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.donate-server-select.is-open .donate-server-select__icon {
  transform: rotate(180deg);
}

.donate-server-select__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.donate-server-select.is-open .donate-server-select__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.donate-server-select__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  background: none;
  color: var(--cc-text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.donate-server-select__option:first-of-type {
  border-radius: 11px 11px 0 0;
}

.donate-server-select__option:last-of-type {
  border-radius: 0 0 11px 11px;
}

.donate-server-select__option:hover {
  background: var(--cc-darker);
}

.donate-server-select__option:active {
  background: var(--cc-border);
}

.donate-server-select__option .donate-server-select__logo {
  width: 24px;
  height: 24px;
}

@media (max-width: 599px) {
  .donate-combo__row {
    flex-direction: column;
    align-items: stretch;
  }
  .donate-combo__badge-wrap {
    justify-content: flex-start;
  }
  .donate-server-select__trigger {
    min-width: 0;
    width: 100%;
  }
}

/* Donate: карточки китов */
.donate-kits-section {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.donate-kits-extra-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-kits-extra__intro {
  font-size: 0.95rem;
  color: var(--cc-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.donate-kits-extra__badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  vertical-align: middle;
}

/* Donate: возможности */
.donate-features-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-features__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  min-width: 0;
}

.donate-features__badge {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.35rem;
}

.donate-features__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-features__badge--vip { background: rgba(230, 126, 34, 0.25); color: #e67e22; }
.donate-features__badge--premium { background: rgba(155, 89, 182, 0.25); color: #9b59b6; }
.donate-features__badge--deluxe { background: rgba(233, 30, 140, 0.25); color: #e91e8c; }
.donate-features__badge--elite { background: rgba(52, 152, 219, 0.25); color: #3498db; }
.donate-features__badge--legend { background: rgba(231, 76, 60, 0.25); color: #e74c3c; }

.donate-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .donate-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.donate-features__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
}

.donate-features__label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.donate-features__label {
  color: var(--cc-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.donate-features__sublabel {
  font-size: 0.8rem;
  color: var(--cc-text-muted);
  font-weight: 400;
}

.donate-features__value {
  color: var(--cc-text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.donate-features__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--cc-green);
  color: #fff;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.donate-disclaimer {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  color: var(--cc-text-muted);
  line-height: 1.5;
}

/* Donate: панель покупки (navbar-like) */
.donate-purchase-bar {
  background: var(--cc-card-bg);
  border-top: 1px solid var(--cc-border);
  padding: 1rem 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.donate-purchase-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.donate-purchase-bar__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.donate-purchase-bar__select {
  display: none;
}

.donate-period-select {
  position: relative;
}

.donate-period-select__trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  padding-right: 2.5rem;
  background: var(--cc-darker);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  color: var(--cc-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.donate-period-select__trigger:hover {
  border-color: var(--cc-accent);
}

.donate-period-select__trigger:focus-visible {
  outline: none;
  border-color: var(--cc-accent);
}

.donate-period-select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.donate-period-select__label--gradient {
  background: linear-gradient(90deg, #e67e22, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-period-select__discount {
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--cc-green);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .donate-period-select__discount,
  .donate-purchase-bar__discount {
    display: none !important;
  }
}

.donate-period-select__icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.donate-period-select.is-open .donate-period-select__icon {
  transform: translateY(-50%) rotate(0deg);
}

.donate-period-select__dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 6px;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 25;
  max-height: 220px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.donate-period-select.is-open .donate-period-select__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.donate-period-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  background: none;
  color: var(--cc-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.donate-period-select__option:first-of-type {
  border-radius: 0 0 11px 11px;
}

.donate-period-select__option:last-of-type {
  border-radius: 11px 11px 0 0;
}

.donate-period-select__option:hover {
  background: var(--cc-darker);
}

.donate-period-select__option:active {
  background: var(--cc-border);
}

.donate-period-select__option--gradient {
  background: linear-gradient(90deg, #e67e22, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-period-select__option-discount {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--cc-green);
  color: #fff;
  font-weight: 700;
  -webkit-text-fill-color: initial;
  background-clip: unset;
}

.donate-purchase-bar__switch {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  background: var(--cc-darker);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--cc-border);
}

.donate-purchase-bar__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  flex-wrap: wrap;
}

.donate-purchase-bar__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.donate-purchase-bar__option:has(input:checked) {
  background: var(--cc-border);
}

.donate-purchase-bar__option-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-purchase-bar__option-text--gradient {
  background: linear-gradient(90deg, #e67e22, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-purchase-bar__discount {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--cc-green);
  color: #fff;
  font-weight: 700;
}

.donate-purchase-bar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.donate-purchase-bar__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cc-text);
}

@media (max-width: 767px) {
  .donate-purchase-bar {
    padding: 0.6rem 0;
  }
  .donate-purchase-bar__inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 0;
    justify-content: space-between;
    padding-left: 0;
    padding-right: 0;
  }
  .donate-purchase-bar__badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .donate-purchase-bar__select {
    display: block;
    flex: 1;
    min-width: 0;
  }
  .donate-purchase-bar__switch {
    display: none;
  }
  .donate-purchase-bar__right {
    margin-left: auto;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .donate-purchase-bar__price {
    font-size: 0.9rem;
  }
  .donate-purchase-bar__right .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

.donate-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.donate-confirm-modal--open {
  display: block;
}

.donate-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.donate-confirm-modal__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  margin: 8vh auto 0;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);
}

.donate-confirm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cc-border);
}

.donate-confirm-modal__title {
  margin: 0;
  font-size: 1.15rem;
}

.donate-confirm-modal__close {
  border: none;
  background: transparent;
  color: var(--cc-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.donate-confirm-modal__body {
  padding: 1rem 1.25rem;
}

.donate-confirm-modal__body p {
  margin: 0 0 0.65rem;
}

.donate-confirm-modal__privilege-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.donate-confirm-modal__privilege-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.donate-confirm-modal__server {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.donate-confirm-modal__server-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--cc-border);
  background: var(--cc-darker);
  flex-shrink: 0;
}

.donate-confirm-modal__note {
  color: var(--cc-text-muted);
  font-size: 0.9rem;
}

.donate-confirm-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.85rem;
  color: var(--cc-text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

.donate-confirm-modal__consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.donate-confirm-modal__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border-radius: 6px;
  border: 1px solid var(--cc-border);
  background: var(--cc-darker);
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.donate-confirm-modal__checkbox::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.donate-confirm-modal__consent input:checked + .donate-confirm-modal__checkbox {
  border-color: var(--cc-accent);
  background: var(--cc-accent);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.22);
}

.donate-confirm-modal__consent input:checked + .donate-confirm-modal__checkbox::after {
  transform: rotate(45deg) scale(1);
}

.donate-confirm-modal__consent input:focus-visible + .donate-confirm-modal__checkbox {
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.28);
}

.donate-confirm-modal__consent a {
  color: var(--cc-accent);
}

.donate-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.donate-confirm-modal__buy-form {
  margin: 0;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-self: stretch;
}

.donate-confirm-modal__buy-form .btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.donate-confirm-modal__actions .btn--disabled {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 767px) {
  .donate-confirm-modal__box {
    margin-top: 5vh;
  }
  .donate-confirm-modal__actions {
    flex-direction: column-reverse;
  }
  .donate-confirm-modal__buy-form {
    width: 100%;
  }
  .donate-confirm-modal__actions .btn {
    width: 100%;
  }
}

.donate-kits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  min-width: 0;
}

@media (min-width: 600px) {
  .donate-kits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.donate-kit-card {
  min-width: 0;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.donate-kit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.donate-kit-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-kit-card__badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.donate-kit-card__server {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--cc-text-muted);
}

.donate-kit-card__items {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 1rem;
  min-width: 0;
}

.donate-kit-card__tilemap {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cc-darker);
}

.donate-kit-card__tilemap-img {
  width: 100%;
  height: auto;
  display: block;
}

.donate-kit-card__item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: visible;
  background: var(--cc-darker);
}

.donate-kit-card__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.donate-kit-card__item-tile {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.donate-kit-card__item-count {
  position: absolute;
  bottom: 2px;
  right: 2px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.donate-kit-card__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: rgba(7, 9, 16, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  line-height: 1.25;
  max-width: min(12rem, calc(100vw - 2rem));
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 12;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.donate-kit-card__tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(7, 9, 16, 0.95);
}

.donate-kit-card__item:hover .donate-kit-card__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.donate-kit-card__cooldown {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cc-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.donate-kit-card__cooldown i {
  opacity: 0.9;
}

.server-card {
  position: relative;
}

.server-card .glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.server-card .glow-1 {
  background: var(--cc-purple);
  top: -50px;
  right: -50px;
}

.server-card .glow-2 {
  background: var(--cc-accent);
  bottom: -50px;
  left: -50px;
}

/* Servers page: header + badges (left align) */
.section--servers .container {
  text-align: left;
}

.servers-header {
  margin-bottom: 2rem;
}

.servers-header__title {
  margin-bottom: 0.5rem;
}

.servers-header__desc {
  color: var(--cc-text-muted);
  margin-bottom: 1rem;
  max-width: 36em;
}

.servers-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.servers-badges .badge {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Server cards grid with background + hover zoom */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.server-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.server-card--bg {
  position: relative;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  background: var(--cc-card-bg);
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.server-card-link:hover .server-card--bg {
  transform: scale(1.03);
}

.server-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.6) 50%, rgba(13, 17, 23, 0.4) 100%);
  z-index: 1;
}

.server-card__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.server-card__tags {
  margin-bottom: 0.5rem;
}

.server-card__logo {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.server-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cc-text);
}

.server-card__content .badge--online {
  margin-top: auto;
}

/* Launcher page */
.section--launcher .container {
  text-align: center;
}

.launcher-header {
  margin-bottom: 2rem;
}

.launcher-header__title {
  margin-bottom: 0.5rem;
}

.launcher-header__desc {
  color: var(--cc-text-muted);
  margin: 0 auto 1rem;
  max-width: 42em;
  line-height: 1.5;
}

.launcher-preview {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  background: var(--cc-card-bg);
}

.launcher-preview__img {
  width: 100%;
  height: auto;
  display: block;
}

.launcher-downloads__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.launcher-downloads__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.launcher-downloads__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.launcher-downloads__btn:hover {
  color: #fff;
}

.launcher-faq {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cc-border);
  text-align: center;
}

.launcher-faq__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .section--launcher {
    padding-top: 5rem !important;
  }

  .launcher-downloads__grid {
    flex-direction: column;
  }

  .launcher-downloads__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Servers page: адаптивность блоков серверов */
@media (max-width: 900px) {
  .servers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .server-card--bg,
  .server-card__content {
    min-height: 240px;
  }

  .server-card__content {
    padding: 1.25rem;
  }

  .server-card__logo {
    width: 64px;
    height: 64px;
  }

  .server-card__name {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section--servers {
    padding-top: 5rem !important;
  }

  .servers-header {
    margin-bottom: 1.5rem;
  }

  .servers-header__title {
    font-size: 1.5rem;
  }

  .servers-header__desc {
    font-size: 0.95rem;
  }

  .servers-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .servers-grid {
    gap: 1rem;
  }

  .server-card--bg,
  .server-card__content {
    min-height: 200px;
  }

  .server-card__content {
    padding: 1rem;
  }

  .server-card__logo {
    width: 56px;
    height: 56px;
    margin-bottom: 0.35rem;
  }

  .server-card__name {
    font-size: 1.1rem;
  }

  .server-card__content .badge--online,
  .server-card__tags .tag {
    font-size: 0.8rem;
  }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(163, 113, 247, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.6;
  }

  50% {
    transform: translate(10px, -10px);
    opacity: 1;
  }
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
}

.particle:nth-child(2) {
  left: 30%;
  top: 60%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  left: 50%;
  top: 30%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  left: 70%;
  top: 70%;
  animation-delay: 0.5s;
}

.particle:nth-child(5) {
  left: 90%;
  top: 40%;
  animation-delay: 1.5s;
}

.particle:nth-child(6) {
  left: 20%;
  top: 80%;
  animation-delay: 2.5s;
}

/* News list — одна колонка, блок-ссылка */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cc-border);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.news-item:last-of-type {
  border-bottom: none;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.news-item__img {
  width: 360px;
  min-width: 360px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.news-item__body {
  flex: 1;
  min-width: 0;
}

.news-item__title {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cc-text);
}

.news-item__date {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cc-text-muted);
  background: var(--cc-darker);
  border-radius: 6px;
}

.news-item__desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--cc-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: stretch;
  }
  .news-item__img {
    width: 100%;
    min-width: 0;
    height: 200px;
    order: -1;
  }
}

/* Profile dropdown card */
.profile-card {
  min-width: 280px;
  padding: 1rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-card__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.profile-card__avatar-link {
  flex-shrink: 0;
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
  text-decoration: none;
  color: inherit;
}

.profile-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card__name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-card__name-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.profile-card__name-link:hover,
.profile-card__name-link:focus,
.profile-card__name-link:active,
.profile-card__avatar-link:hover,
.profile-card__avatar-link:focus,
.profile-card__avatar-link:active {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.profile-card__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.profile-card__balance .btn {
  max-width: 7rem;
  flex-shrink: 0;
  margin-bottom: 0;
  text-align: center;
}

.profile-card hr {
  border: none;
  border-top: 1px solid var(--cc-border);
  margin: 0.5rem 0;
}

.profile-card .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.profile-card .btn--text {
  background: transparent;
  color: var(--cc-text-muted);
}

.profile-card .btn--text:hover {
  background: transparent;
  color: var(--cc-accent);
}

.profile-card__logout-form {
  margin: 0;
  display: block;
}

.profile-card__logout-form .btn {
  width: 100%;
  margin-bottom: 0;
}

/* Mobile profile panel */
.profile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cc-dark-bg);
  overflow-y: auto;
  height: 100vh;
}

.profile-panel.is-active {
  display: block;
}

body.profile-panel-open {
  overflow: hidden;
}

.profile-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--cc-darker);
  border-bottom: 1px solid var(--cc-border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.profile-panel__close {
  background: none;
  border: none;
  color: var(--cc-text);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

.profile-panel__close:hover {
  color: var(--cc-accent);
}

.profile-panel__content {
  padding: 1.5rem;
}

/* Footer */
.footer {
  background: var(--cc-darker);
  color: var(--cc-text-muted);
  padding: 2rem 0;
}

.footer a {
  color: var(--cc-text);
  text-decoration: none;
}

.footer a:hover {
  color: var(--cc-accent);
}

.footer .tag {
  background: var(--cc-card-bg);
}

.footer .tag:hover {
  background: var(--cc-border);
  color: var(--cc-accent);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.post-footer {
  background: var(--cc-dark-bg);
  border-top: 1px solid var(--cc-border);
  padding: 1rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--cc-text-muted);
}

.post-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.25rem;
}

.post-footer a {
  color: var(--cc-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
}

.post-footer a:hover {
  color: var(--cc-accent);
}

.post-footer p {
  margin: 0.25rem 0;
}

@media (min-width: 768px) {
  .col--half {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .col--third {
    flex: 0 0 calc(33.333% - 0.67rem);
  }
}

/* Login page */
.login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 4rem 0 2rem;
  text-align: center;
}
.login-panel {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.login-panel__title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}
.login-form {
  text-align: left;
}
.login-form__field {
  margin-bottom: 1.25rem;
  text-align: left;
}
.login-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cc-text-muted);
}
.login-form__input {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  color: var(--cc-text);
  background: var(--cc-darker);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}
.login-form__input::placeholder {
  color: var(--cc-text-muted);
}
/* Убираем белый/жёлтый фон автозаполнения браузера под тёмную тему */
.login-form__input:-webkit-autofill,
.login-form__input:-webkit-autofill:hover,
.login-form__input:-webkit-autofill:focus,
.login-form__input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--cc-darker) inset;
  -webkit-text-fill-color: var(--cc-text);
  box-shadow: 0 0 0 1000px var(--cc-darker) inset;
  caret-color: var(--cc-text);
}
.login-form__input:hover {
  border-color: var(--cc-text-muted);
}
.login-form__input:focus {
  border-color: var(--cc-accent);
}
.login-form__input[type="number"] {
  -moz-appearance: textfield;
}
.login-form__input[type="number"]::-webkit-outer-spin-button,
.login-form__input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
select.login-form__input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.login-form__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.login-form__submit {
  min-width: 10rem;
}
.login-form__reg {
  min-width: 10rem;
  text-align: center;
}

.login-form__field--captcha {
  display: flex;
  justify-content: flex-start;
}
.login-form__field--captcha .g-recaptcha {
  transform: scale(1);
}
@media (max-width: 400px) {
  .login-form__field--captcha .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left center;
  }
}

/* Profile page */
.section--profile .container {
  text-align: left;
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-header__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-header__title i {
  opacity: 0.9;
}

/* Кабинет: сетка «вертикальная навигация + контент» */
.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
}

.cabinet-layout__sidebar {
  position: sticky;
  top: 5rem;
}

.cabinet-layout__sidebar .cabinet-nav {
  margin: 0;
}

.cabinet-layout__main {
  min-width: 0;
}

.cabinet-skin-preview {
  margin-bottom: 1.25rem;
}

.cabinet-nav {
  margin: 0 0 1.75rem;
}

.cabinet-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cabinet-nav__list--vertical {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.cabinet-layout__sidebar .cabinet-nav__link {
  display: block;
  text-align: left;
}

.cabinet-nav__link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  color: var(--cc-text-muted);
  border: 1px solid var(--cc-border);
  background: var(--cc-card-bg);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cabinet-nav__link:hover {
  color: var(--cc-text);
  border-color: color-mix(in srgb, var(--cc-border) 70%, var(--cc-accent, #6366f1) 30%);
}

.cabinet-nav__link--active {
  color: #fff;
  background: var(--cc-accent, #6366f1);
  border-color: transparent;
}

.cabinet-nav__link--active:hover {
  color: #fff;
  opacity: 0.92;
}

/* Кабинет — карточки голосований (/cabinet/bonus) */
.cabinet-bonus-section .cabinet-vote-cards {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cabinet-vote-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--cc-border);
  background: var(--cc-card-bg);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--cc-border) 40%, transparent);
}

.cabinet-vote-card--hotmc {
  border-left: 4px solid #e85d04;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #e85d04 8%, var(--cc-card-bg)) 0%,
    var(--cc-card-bg) 48%
  );
}

.cabinet-vote-card__brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f97316;
  line-height: 1.2;
}

.cabinet-vote-card__reward {
  margin: 0;
  font-size: 0.98rem;
  color: var(--cc-text-muted);
}

.cabinet-vote-card__reward strong {
  color: var(--cc-text);
  font-weight: 600;
}

.cabinet-vote-card__btn {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.cabinet-bonus-section .cabinet-vote-cards__footnote {
  margin-top: 0.35rem;
  color: var(--cc-text-muted);
  font-size: 0.92rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 5rem;
}

.profile-viewer__body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 1rem;
}

.profile-viewer #skin-viewer {
  transform: scale(0.8);
  transform-origin: center;
}

.profile-main {
  min-width: 0;
}

.profile-block {
  margin-bottom: 1.5rem;
}

.profile-block:last-child {
  margin-bottom: 0;
}

.profile-block__title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cc-border);
}

.profile-info {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.profile-info__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
}

.profile-info__term {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cc-text-muted);
  font-weight: 500;
}

.profile-info__value {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-divider {
  border: none;
  border-top: 1px solid var(--cc-border);
  margin: 1.5rem 0;
}

.profile-forms {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-form {
  margin: 0;
}

/* Блок аватара в профиле */
.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.profile-avatar .login-form__label {
  font-weight: 600;
  color: var(--cc-text);
  margin-bottom: 0;
}

.profile-avatar__preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cc-border);
  flex-shrink: 0;
  border: 3px solid var(--cc-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-border);
  color: var(--cc-text);
  opacity: 0.7;
  font-size: 2.5rem;
}

.profile-avatar__upload {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--cc-accent);
  background: transparent;
  border: 1px solid var(--cc-accent);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.profile-avatar__upload:hover {
  background: var(--cc-accent);
  color: #fff;
}

.profile-avatar__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.profile-avatar__hint {
  font-size: 0.8rem;
  color: var(--cc-text);
  opacity: 0.75;
}

.profile-avatar__delete-form {
  margin: 0;
}

.profile-avatar__delete-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  color: #c0392b;
  background: transparent;
  border: 1px solid rgba(192, 57, 43, 0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.profile-avatar__delete-btn:hover {
  background: rgba(192, 57, 43, 0.1);
  border-color: #c0392b;
}

.profile-avatar__crop-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--cc-text);
  background: var(--cc-border);
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.profile-avatar__crop-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Модальное окно кадрирования аватара (тёмная тема) */
.avatar-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.avatar-crop-modal--open {
  opacity: 1;
  visibility: visible;
}

.avatar-crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.avatar-crop-modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.avatar-crop-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cc-border);
  flex-shrink: 0;
  background: var(--cc-darker);
}

.avatar-crop-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cc-text);
}

.avatar-crop-modal__close {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cc-text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.avatar-crop-modal__close:hover {
  color: var(--cc-text);
  background: var(--cc-border);
}

.avatar-crop-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: var(--cc-card-bg);
}

.avatar-crop-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--cc-text-muted);
  line-height: 1.4;
}

.avatar-crop-modal__wrap {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 120px;
  max-height: min(70vh, 480px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--cc-dark-bg);
  border: 1px solid var(--cc-border);
}

.avatar-crop-modal__img-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: min(70vh, 480px);
}

.avatar-crop-modal__img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 480px);
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: top;
}

.avatar-crop-modal__crop {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border: 2px solid var(--cc-accent);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  cursor: move;
  box-sizing: border-box;
  border-radius: 2px;
}

.avatar-crop-modal__crop::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  background: var(--cc-border);
  border: 1px solid var(--cc-text-muted);
  cursor: nwse-resize;
  border-radius: 0 0 2px 0;
}

.avatar-crop-modal__form {
  margin: 0;
  flex-shrink: 0;
}

.avatar-crop-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.avatar-crop-modal__cancel {
  margin: 0;
}

.avatar-crop-modal__submit {
  margin: 0;
  min-width: 180px;
}

.profile-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.profile-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-switch__slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--cc-border);
  border-radius: 24px;
  transition: background 0.2s;
}

.profile-switch__slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: var(--cc-text);
  border-radius: 50%;
  transition: transform 0.2s;
}

.profile-switch input:checked + .profile-switch__slider {
  background: var(--cc-accent);
}

.profile-switch input:checked + .profile-switch__slider::before {
  transform: translateX(20px);
}

.profile-switch__label {
  font-size: 0.95rem;
  color: var(--cc-text);
}

.profile-table-wrap {
  overflow-x: auto;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.profile-table th,
.profile-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cc-border);
}

.profile-table th {
  font-weight: 600;
  color: var(--cc-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .cabinet-layout__sidebar {
    position: static;
  }

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

  .profile-sidebar {
    position: static;
  }

  .profile-viewer #skin-viewer {
    transform: scale(0.7);
  }

  .profile-info__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .section--profile {
    padding-top: 5rem !important;
  }

  .profile-header__title {
    font-size: 1.3rem;
  }

  .profile-table th,
  .profile-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Team page (/team) */
.team-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  margin-bottom: 2.5rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
}

.team-cta__text {
  flex: 1;
  min-width: 220px;
}

.team-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.team-cta__desc {
  margin: 0;
  color: var(--cc-text-muted);
  font-size: 0.95rem;
}

.team-cta__action {
  flex-shrink: 0;
}

.team-section {
  margin-bottom: 2.75rem;
}

.team-section__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.team-section__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
}

.team-section__name {
  margin: 0;
  font-size: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  overflow: hidden;
}

.team-member__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.team-member__link:hover {
  background: color-mix(in srgb, var(--cc-card-bg) 85%, var(--cc-accent, #6366f1) 15%);
}

.team-member__link:focus-visible {
  outline: 2px solid var(--cc-accent, #6366f1);
  outline-offset: -2px;
}

.team-member--nolink {
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
}

.team-member__avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.team-member__nick {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.team-empty {
  color: var(--cc-text-muted);
  margin: 2rem 0;
}

/* Players search (/players) */
.section--players .players-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.section--players .players-search__field {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
}

.section--players .players-search__submit {
  align-self: flex-end;
}

.players-hint {
  margin: 0 0 1rem;
  color: var(--cc-text-muted);
  font-size: 0.95rem;
}

.players-hint--warn {
  color: var(--cc-warn, #f59e0b);
}

.players-meta {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--cc-text-muted);
}

.players-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
}

.players-list__item {
  margin: 0;
}

.players-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.players-card:hover {
  background: color-mix(in srgb, var(--cc-card-bg) 88%, var(--cc-accent, #6366f1) 12%);
}

.players-card:focus-visible {
  outline: 2px solid var(--cc-accent, #6366f1);
  outline-offset: 2px;
}

.players-card__avatar-wrap {
  flex-shrink: 0;
}

.players-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: middle;
}

.players-card__login {
  font-weight: 600;
  word-break: break-word;
}

.players-pagination {
  margin-top: 1.75rem;
}

.players-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.players-pagination__info {
  color: var(--cc-text-muted);
  font-size: 0.9rem;
}

/* Leaderboard (/tops) */
.section--tops .tops-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--cc-border);
  background: var(--cc-card-bg);
}

.section--tops .tops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.section--tops .tops-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cc-border);
  color: var(--cc-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.section--tops .tops-table thead th.tops-table__col-score {
  text-align: right;
}

.section--tops .tops-table tbody td {
  padding: 0.55rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid color-mix(in srgb, var(--cc-border) 70%, transparent);
}

.section--tops .tops-table tbody tr:last-child td {
  border-bottom: none;
}

.section--tops .tops-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--cc-card-bg) 94%, var(--cc-bg-elevated, #0f172a) 6%);
}

.section--tops .tops-table__col-rank {
  width: 3.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--cc-text-muted);
}

.section--tops .tops-table__col-score {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.section--tops .tops-table__player {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.section--tops .tops-table__player:hover {
  color: var(--cc-accent, #6366f1);
}

.section--tops .tops-table__player:focus-visible {
  outline: 2px solid var(--cc-accent, #6366f1);
  outline-offset: 2px;
  border-radius: 6px;
}

.section--tops .tops-table__avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: middle;
}

.section--tops .tops-table__login {
  font-weight: 600;
  word-break: break-word;
}

/* Pay page (/pay) */
.pay-section .page-text-section__title {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pay-section .page-content-block {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.pay-subheading {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 1rem;
  color: var(--cc-text);
}

.pay-subheading:first-child {
  margin-top: 0;
}

.pay-divider {
  border: none;
  border-top: 1px solid var(--cc-border);
  margin: 1.5rem 0;
}

.pay-highlight {
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.28);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.pay-highlight--success {
  background: rgba(46, 160, 67, 0.1);
  border-color: rgba(63, 185, 80, 0.35);
}

.pay-bonuses-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cc-text);
}

.pay-bonus-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--cc-text);
}

.pay-bonus-list li {
  margin-bottom: 0.25rem;
}

.pay-bonus-list li:last-child {
  margin-bottom: 0;
}

.pay-consent {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--cc-text-muted);
  line-height: 1.55;
}

.pay-consent a {
  color: var(--cc-accent);
  text-decoration: none;
}

.pay-consent a:hover {
  text-decoration: underline;
}

.pay-methods-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.15rem 0 0.35rem;
}

.pay-chibi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.pay-chibi-total {
  font-size: 1.1rem;
  color: var(--cc-text);
}

.pay-chibi-bonus {
  font-size: 0.95rem;
  color: var(--cc-green);
  font-weight: 600;
}

.pay-method-name {
  margin: 0.25rem 0 0.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cc-text);
  line-height: 1.2;
}

.payment-method {
  flex: 0 0 auto;
  min-width: 80px;
}

/* Справочный список на /pay — только отображение, без клика */
.pay-section .payment-card--info {
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.payment-card {
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
  padding: 0.55rem 0.45rem;
  height: 100%;
  background: var(--cc-darker);
  box-sizing: border-box;
}

/* Доступно при текущей сумме — заметнее базовой карточки */
.payment-card--available:not(.payment-card--muted):not(.payment-card--picked) {
  border-color: rgba(63, 185, 80, 0.5);
  background: rgba(63, 185, 80, 0.12);
  box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.18);
}

.payment-card--available:not(.payment-card--muted):not(.payment-card--picked):hover {
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.35);
  background: rgba(255, 90, 0, 0.1);
}

.payment-card:hover:not(.payment-card--muted):not(.payment-card--picked):not(.payment-card--available) {
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.22);
}

.payment-card--muted {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  border-style: dashed;
  background: var(--cc-darker);
  box-shadow: none;
}

.payment-card--picked:not(.payment-card--muted) {
  border: 2px solid var(--cc-accent);
  box-shadow: 0 0 16px rgba(255, 90, 0, 0.2);
  background: rgba(255, 90, 0, 0.08);
}

.payment-card img {
  display: inline-block;
  max-width: 52px;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.payment-info {
  display: block;
  font-size: 0.68rem;
  color: var(--cc-text-muted);
  line-height: 1.25;
}

.payment-info.is-below-min {
  color: #f85149;
}

/* ЧибиКоины: без отдельного курсора и подчёркивания (подсказка title остаётся) */
abbr.cc-chk {
  cursor: inherit;
  text-decoration: none;
}

/* Ответы форм (JSON message) вместо alert — по умолчанию скрыт до Vue (--shown), без мигания при загрузке */
.site-toast {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none !important;
}

.site-toast.site-toast--shown {
  display: block !important;
}

.site-toast__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.site-toast__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 400px);
  margin: 12vh auto 0;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.site-toast__icon-wrap {
  margin: 0 auto 0.75rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-toast--error .site-toast__icon-wrap {
  background: rgba(248, 81, 73, 0.15);
}

.site-toast--success .site-toast__icon-wrap {
  background: rgba(63, 185, 80, 0.15);
}

.site-toast__icon {
  font-size: 2rem;
  line-height: 1;
}

.site-toast--error .site-toast__icon {
  color: #f85149;
}

.site-toast--success .site-toast__icon {
  color: var(--cc-green);
}

.site-toast__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.site-toast__message {
  margin: 0 0 1.15rem;
  color: var(--cc-text-muted);
  font-size: 0.95rem;
}

.site-toast__ok {
  min-width: 7rem;
}