body{
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
}
.new-server__form {
    max-width: 480px;
}
.user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    column-gap: 140px;
}
.user-info__left {
    width: 45%;
}
.user-info__email {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.user-info__email--label {
    display: block;
    font-weight: 700;
    font-size: 22px;
}
.user-info__email--input.juxmc-input {
    margin-top: 0;
    width: 100%;
}
.user-info__actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.user-info__actions .button,
.user-info__actions .button-alternative,
.user-info__actions form {
    flex: 1;
    white-space: nowrap;
}
.user-info__actions form .button {
    width: 100%;
}
.server-card__action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.server-card__delete-form {
    display: flex;
}

.server-card__edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--color-yellow);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.server-card__boost-btn:hover {
    background-color: #555558;
}

.server-card__delete-btn {
    background-color: #c0392b;
}

.server-card__delete-btn:hover {
    background-color: #a93226;
}

.server-card__edit-icon {
    width: 16px;
    height: 16px;
    filter: invert(1) opacity(0.7);
    transition: filter var(--transition-duration);
}

.server-card__action-icon {
    filter: none;
    opacity: 0.85;
}
.user-bonuses {
    margin-bottom: 60px;
    padding-bottom: 40px;
}
.user-bonuses__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.user-bonuses__title {
    font-size: 22px;
    font-weight: 700;
}
.user-bonuses__body {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bonus-alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.bonus-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}
.user-servers{
    margin-bottom: 200px;
}
.user-servers__header {
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}
.user-servers__title{
    font-size: 22px;
    font-weight: 700;
}
.user-servers__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.server-info__box{
    margin-bottom: 100px;
}
/* ── Карточка сервера ── */
.server-info__card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 60px;
}
.server-info__card .server-card__rank {
    flex-shrink: 0;
    margin-top: 54px;
}
.server-info__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-width: calc((100% - 44px) * 0.75);
    background: var(--color-gray);
    border-left: 3px solid var(--color-yellow);
    border-radius: 8px;
    padding: 20px 28px;
}
.server-info__card-body .server-description {
    margin-top: -4px;
    margin-bottom: -4px;
}
.server-info__card-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}
.server-info__card-name-row .server-name {
    font-size: 20px;
    margin: 0;
    white-space: nowrap;
}
.server-moderation-badge,
.server-disabled-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}
.server-moderation-badge {
    color: #f5d105;
    border: 1px solid #f5d105;
}
.server-disabled-badge {
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}
.server-info__card-row {
    display: flex;
    align-items: center;
    column-gap: 50px;
}
.server-info__card-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.server-info__card-left .server-details {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    min-height: 60px;
    height: 60px;
    flex: none !important;
}
.server-info__card-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 259px;
    flex-shrink: 0;
}
.server-info__card-right .server-link-wrapper {
    width: 100%;
}
.server-info__card-right .server-link {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.server-info {
    padding: 20px;
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.server-info__title {
    margin-bottom: 30px;
}
.server-info__screenshots--title {
    font-size: 22px;
    margin-bottom: 25px;
}

/* ── Секция полного описания сервера ── */
.server-info__desc-section {
    margin-bottom: 60px;
    position: relative;
}

/* Карточка с текстом */
.server-info__desc-section__text {
    position: relative;
    font-size: 15px;
    max-width: calc((100% - 44px) * 0.75);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    background: var(--color-gray);
    border: none;
    border-left: 3px solid var(--color-yellow);
    border-radius: 8px;
    padding: 16px 28px;
    overflow: hidden;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: break-word;
}

.server-info__desc-section__empty {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Rich-text стили внутри описания */
.server-info__desc-section__text p {
    margin-bottom: 12px;
}
.server-info__desc-section__text p:last-child {
    margin-bottom: 0;
}
.server-info__desc-section__text ul,
.server-info__desc-section__text ol {
    padding-left: 24px;
    margin-bottom: 12px;
}
.server-info__desc-section__text li {
    margin-bottom: 6px;
}
.server-info__desc-section__text strong,
.server-info__desc-section__text b {
    font-weight: 700;
    color: #fff;
}
.server-info__desc-section__text em,
.server-info__desc-section__text i {
    font-style: italic;
}
.server-info__desc-section__text a {
    color: var(--color-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s;
}
.server-info__desc-section__text a:hover {
    opacity: 0.8;
}
.server-info__desc-section__text h2,
.server-info__desc-section__text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.server-info__desc-section__text br {
    display: block;
    content: "";
    margin-top: 8px;
}
.server-info__gallery {
    display: flex;
    gap: 44px;
    margin-bottom: 60px;
}
.server-info__main-image {
    flex: 3;
    height: 448px;
    border-radius: 5px;
    overflow: hidden;
}
.server-info__gallery > .server-info__main-image:only-child {
    flex: none;
    width: calc((100% - 44px) * 0.75);
}
.server-info__main-image--img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}
.server-info__thumbnails {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.server-info__thumbnail {
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
}
.server-info__thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}
.server-info__boost-btn {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 60px;
}

/* ── Активные баллы ── */
.server-info__purchases {
    margin-bottom: 60px;
    max-width: calc((100% - 44px) * 0.75);
}
.server-info__purchases-wrap {
    position: relative;
}
.server-info__purchases-wrap.is-collapsed .server-info__purchases-grid {
    max-height: 96px; /* 1 ряд карточек */
    overflow: hidden;
}
.server-info__purchases-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #000);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.server-info__purchases-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    height: 48px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.server-info__purchases-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.server-info__purchases-toggle.is-open .server-info__purchases-arrow {
    transform: rotate(180deg);
}
.server-info__purchases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.server-info__purchase-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--color-gray);
    border-left: 3px solid var(--color-yellow);
    border-radius: 5px;
    padding: 18px 24px;
    box-sizing: border-box;
}
.server-info__purchase-icon {
    flex-shrink: 0;
    opacity: 0.85;
}
.server-info__purchase-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.server-info__purchase-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-yellow);
}
.server-info__purchase-expires {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Статус сервера ── */
.server-info__status {
    margin-bottom: 60px;
}
.server-status {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc((100% - 44px) * 0.75);
    background: var(--color-gray);
    border-left: 3px solid var(--color-yellow);
    border-radius: 8px;
    padding: 16px 28px;
}
.server-status__dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.server-status__dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid;
    animation: status-pulse 2s ease-out infinite;
}
.server-status__dot--online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}
.server-status__dot--online::before {
    border-color: rgba(34, 197, 94, 0.4);
}
.server-status__dot--offline {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.server-status__dot--offline::before {
    border-color: rgba(239, 68, 68, 0.4);
}
.server-status__text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.server-info__tags {
    margin-bottom: 60px;
}
.server-info__tags-categories {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.server-info__tags-category-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-yellow);
    margin-bottom: 12px;
}
.server-info__tags-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.server-info__tag-chip {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #3a3a3d;
    background: transparent;
    color: #ccc;
    font-size: 14px;
    font-family: var(--font-base);
    white-space: nowrap;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.server-info__social{
    margin-bottom: 60px;
}
.server-info__icons{
    display: flex;
    align-items: center;
    column-gap: 50px;
}
.server-info__icons--link {
    position: relative;
}
.server-info__icon--img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.serverinfo__menagement {
    border-radius: 10px;
    width: 100%;
    max-width: 705px;
}
.serverinfo__title {
    margin-bottom: 50px;
}
.serverinfo__label{
    font-weight: 600;
}
.serverinfo__input{
    font-weight: 500;
}
.file-requirements {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* Кастомный file upload */
.file-upload-row {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 !important;
    overflow: hidden;
    cursor: pointer;
}

.file-upload-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Show focus ring on the row when hidden input is focused via Tab */
.file-upload-row:has(.file-upload-hidden:focus-visible) {
    outline: 2px solid var(--color-yellow);
    outline-offset: 2px;
}

.file-upload-trigger {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    min-width: 0;
}

.file-upload-status {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.file-upload-status--selected {
    color: var(--color-yellow);
}

.file-upload-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--color-gray-light);
    padding: 4px;
}

.file-upload-thumb-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.file-upload-thumb-default {
    opacity: 0.5;
    border-radius: 0;
    object-fit: contain;
}

.file-upload-remove {
    flex-shrink: 0;
    width: 24px;
    margin-right: 4px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-remove.hidden {
    visibility: hidden;
    pointer-events: none;
}

.file-upload-remove img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(22%) sepia(90%) saturate(3000%) hue-rotate(350deg) brightness(95%);
    transition: opacity 0.2s;
}

.file-upload-remove:hover img {
    opacity: 0.7;
}

.file-upload-pick-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 5px;
    background-color: var(--color-gray-light);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}
.serverinfo__button {
    width: 100%;
    max-width: 155px;
    margin-top: 50px;
}
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 705px;
}
.input-counter-wrapper {
    margin-top: 10px;
}
.input-field-row {
    position: relative;
}
.input-counter-wrapper .juxmc-input {
    margin-top: 0;
    padding-right: 56px;
}
.input-char-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    pointer-events: none;
    white-space: nowrap;
}
.input-validation-tooltip {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #e53935;
    font-weight: 600;
}
.input-validation-tooltip.visible {
    display: block;
}
.juxmc-input.social-error {
    border-color: #e53935 !important;
}
select {
    padding-right: 20px !important;
}

/* ── Кастомный дропдаун версий (управление сервером) ── */
.version-picker {
    position: relative;
}
.version-picker__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    padding: 10px 14px;
    background-color: var(--color-gray);
    border: 1px solid transparent;
    border-radius: var(--border-radius-small);
    color: #fff;
    font-size: 16px;
    font-family: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-align: left;
}
.version-picker__toggle:hover {
    border-color: var(--color-gray-light);
}
.version-picker__toggle:focus {
    outline: none;
}
.version-picker__toggle:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
}
.version-picker__toggle[aria-expanded="true"] {
    border-color: var(--color-yellow);
}
.version-picker__selected {
    flex: 1;
}
.version-picker__arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: solid var(--color-yellow);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: -3px;
}
.version-picker__toggle[aria-expanded="true"] .version-picker__arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
}
.version-picker__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    visibility: hidden;
    background-color: var(--color-gray);
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top center;
    transition:
        opacity 0.25s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-yellow) transparent;
}
.version-picker__dropdown::-webkit-scrollbar {
    width: 6px;
}
.version-picker__dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.version-picker__dropdown::-webkit-scrollbar-thumb {
    background: var(--color-yellow);
    border-radius: 3px;
}
.version-picker__dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.version-picker__option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-base);
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}
.version-picker__option:hover {
    background-color: var(--color-gray-light);
}
.version-picker__option:focus {
    background-color: var(--color-gray-light);
    outline: none;
}
.version-picker__option:focus-visible {
    background-color: var(--color-gray-light);
    outline: 2px solid var(--color-yellow);
    outline-offset: -2px;
}
.version-picker__option.is-selected {
    color: var(--color-yellow);
    font-weight: 600;
}
.version-picker-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    flex-shrink: 0;
}
.boost-menu__header {
    margin-bottom: 80px;
}
.boost-menu__header--title {
    font-size: 32px;
    margin-bottom: 10px;
}
.boost-menu__header--description{
    font-size: 16px;
    color: #aaa;
}
.boost-menu__servcies {
    display: flex;
    gap: 100px;
    justify-content: center;
}
.boost-menu__servcie {
    width: 100%;
    height: 496px;
    background:var(--color-gray);
    border-radius: 10px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: start;
}
.boost-menu__servcie--title {
    font-size: 32px;
    margin-bottom: 53px;
}
.boost-menu__servcie--icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 59px;
}
.boost-menu__servcie--advantages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    width: 100%;
}
.boost-menu__servcie--advantage{
    font-size: 18px;
    margin-bottom: 10px;
}
.juxcoins {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.juxcoins__title {
    margin-bottom: 12px;
}
.juxcoins__subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 50px;
    text-align: center;
}
.juxcoins__form {
    max-width: 700px;
    width: 100%;
    text-align: left;
}
.juxcoins__form-fieldset{
    border: none;
    margin: 0 0 30px;
    padding: 0;
}
.juxcoins__form-fieldset--title{
    margin-bottom: 10px !important;
    padding: 0;
}

.confirm__button {
    max-width: 700px;
    width: 100%;
    height: 54px;
    font-size: 16px;
    font-weight: 600;
}
.confirm__button:hover {
    background-color: #e0bf00;
}

/* ── Слайдеры покупки ──────────────────────────────────── */
.slider-block {
    margin-bottom: 8px;
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.slider-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-yellow);
}

/* Range slider: кросс-браузерная стилизация */
.juxcoins-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        var(--color-yellow) 0%,
        var(--color-yellow) var(--fill, 0%),
        #2a2a2d var(--fill, 0%),
        #2a2a2d 100%
    );
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
}
.juxcoins-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-yellow);
    border: 3px solid #121212;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 209, 5, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.juxcoins-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(245, 209, 5, 0.5);
}
.juxcoins-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-yellow);
    border: 3px solid #121212;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 209, 5, 0.35);
}
.juxcoins-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #2a2a2d;
}
.juxcoins-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--color-yellow);
}
.juxcoins-slider:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 4px;
    border-radius: 3px;
}

.slider-range-labels,
.slider-step-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 11px;
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}
.slider-range-labels {
    font-size: 12px;
}
.slider-step-labels {
    font-size: 13px;
}
.slider-range-labels span,
.slider-step-labels span {
    width: 0;
    display: inline-flex;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
    transition: color 0.2s ease;
}
.slider-step-labels span.active {
    color: var(--color-yellow);
    font-weight: 600;
}

/* ── Пороги скидок по количеству ───────────────────────── */
.discount-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.discount-tier {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
}
.discount-tier.active {
    border-color: var(--color-yellow);
    background: rgba(245, 209, 5, 0.08);
    color: var(--color-yellow);
}
.discount-tier__badge {
    font-weight: 500;
}
.discount-tier__value {
    font-weight: 700;
}

/* ── Бонус к сроку ─────────────────────────────────────── */
.duration-bonus {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.duration-bonus.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Итоговый блок ─────────────────────────────────────── */
.purchase-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.purchase-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}
.purchase-summary__label {
    font-size: 16px;
}
.purchase-summary__value {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-yellow);
}
.purchase-summary__row--total {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.purchase-summary__row--total .purchase-summary__label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.purchase-summary__row--total .purchase-summary__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-yellow);
}
.promo-code-wrapper {
    position: relative;
}
.promo-code-status {
    position: absolute;
    right: 15px;
    top: 60%;
    transform: translateY(-50%);
    font-size: 25px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.juxmc-input.valid {
    border-color: green !important;
}
.juxmc-input.invalid {
    border-color: red !important;
}
.promo-discount-text {
    margin-top: 5px;
    font-size: 14px;
    color: green;
    font-weight: 600;
    display: none;
}
.promo-discount-text.visible {
    display: block;
}
.promo-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #22c55e;
    border-radius: 50%;
}
.promo-discount-text.promo-discount-text--error {
    color: #ff0000;
}
/* ── Страница выбора услуги ────────────────────────────── */
.boost-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.boost-choice__title {
    margin-bottom: 12px;
}
.boost-choice__subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 50px;
}
.boost-choice__cards {
    display: flex;
    gap: 24px;
    max-width: 700px;
    width: 100%;
}
.boost-choice__cards--center {
    justify-content: center;
    margin-top: 24px;
}
.boost-choice__cards--center .boost-choice__card {
    flex: 0 1 calc(50% - 12px);
}
.boost-choice__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-yellow);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.boost-choice__badge--new {
    background: #22c55e;
    color: #fff;
}
.boost-choice__card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
    cursor: pointer;
}
.boost-choice__card:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
}
.boost-choice__card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-yellow);
    box-shadow: 0 4px 20px rgba(245, 209, 5, 0.12);
    transform: translateY(-2px);
}
.boost-choice__card-icon {
    flex-shrink: 0;
}
.boost-choice__card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.boost-choice__card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* ── Выбор цвета (highlight) ──────────────────────────── */
.highlight-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.highlight-color {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    outline: none;
}
.highlight-color:hover {
    transform: scale(1.12);
    border-color: rgba(255, 255, 255, 0.4);
}
.highlight-color:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
}
.highlight-color.is-selected {
    border-color: #fff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
    transform: scale(1.12);
}
.highlight-color__check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.highlight-color.is-selected .highlight-color__check {
    opacity: 1;
}
.highlight-color-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    min-height: 20px;
}

/* ── Превью выделения ─────────────────────────────────── */
.highlight-preview {
    margin-top: 8px;
}
.highlight-preview__card {
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease;
}
.highlight-preview__name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* ── Swatch в активных услугах (server-card) ──────────── */
.server-info__highlight-swatch {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Выбор бейджа ─────────────────────────────────────── */
.badge-types {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.badge-type {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 calc(20% - 10px);
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}
.badge-type:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.badge-type:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
}
.badge-type.is-selected {
    border-color: var(--color-yellow);
    background: rgba(245, 209, 5, 0.08);
    box-shadow: 0 0 12px rgba(245, 209, 5, 0.15);
}
.badge-type__icon {
    flex-shrink: 0;
}
.badge-type__name {
    font-size: 13px;
    font-weight: 600;
}

/* ── Превью бейджа ────────────────────────────────────── */
.badge-preview {
    margin-top: 8px;
}
.badge-preview__card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}
.badge-preview__icon {
    display: inline-flex;
    align-items: center;
    min-width: 20px;
    min-height: 20px;
}
.badge-preview__name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* ── Бейджи на странице сервера (активные услуги) ─────── */
.server-info__purchase-card--badge-fire { border-left-color: #ff6b35; }
.server-info__purchase-card--badge-lightning { border-left-color: #4d9fff; }
.server-info__purchase-card--badge-star { border-left-color: #f5d105; }
.server-info__purchase-card--badge-diamond { border-left-color: #22d3ee; }
.server-info__purchase-card--badge-crown { border-left-color: #fbbf24; }
.server-info__purchase-card--badge-heart { border-left-color: #f43f5e; }
.server-info__purchase-card--badge-meteor { border-left-color: #fb923c; }
.server-info__purchase-card--badge-trophy { border-left-color: #eab308; }
.server-info__purchase-card--badge-balloon { border-left-color: #c084fc; }
.server-info__purchase-card--badge-confetti { border-left-color: #34d399; }
.server-info__purchase-amount--fire { color: #ff6b35; }
.server-info__purchase-amount--lightning { color: #4d9fff; }
.server-info__purchase-amount--star { color: #f5d105; }
.server-info__purchase-amount--diamond { color: #22d3ee; }
.server-info__purchase-amount--crown { color: #fbbf24; }
.server-info__purchase-amount--heart { color: #f43f5e; }
.server-info__purchase-amount--meteor { color: #fb923c; }
.server-info__purchase-amount--trophy { color: #eab308; }
.server-info__purchase-amount--balloon { color: #c084fc; }
.server-info__purchase-amount--confetti { color: #34d399; }

.tags-widget {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    margin-top: 12px;
}

.tags-widget__column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tags-widget__right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 220px;
    flex-shrink: 0;
}

.tags-widget__title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Scrollable tag list */
.tags-widget__list {
    background: var(--color-gray, #1e1e1e);
    border-radius: 8px;
    padding: 8px 0;
    height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--color-yellow) transparent;
}

.tags-widget__list::-webkit-scrollbar {
    width: 6px;
}
.tags-widget__list::-webkit-scrollbar-track {
    background: transparent;
}
.tags-widget__list::-webkit-scrollbar-thumb {
    background: var(--color-yellow);
    border-radius: 3px;
}

/* Individual tag row */
.tags-widget__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    cursor: pointer;
    user-select: none;
}

.tags-widget__item:hover .tags-widget__tag-name {
    color: #fff;
}

/* Hide the real checkbox visually but keep it focusable for keyboard nav */
.tags-widget__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

/* Show focus ring on custom box + tag name when checkbox is focused via Tab */
.tags-widget__item:has(.tags-widget__checkbox:focus-visible) .tags-widget__checkbox-box {
    border-color: var(--color-yellow);
}
.tags-widget__item:has(.tags-widget__checkbox:focus-visible) .tags-widget__tag-name {
    color: #fff;
}

/* Custom checkbox box */
.tags-widget__checkbox-box {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    background: #3a3a3a;
    border: 2px solid transparent;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tags-widget__checkbox-box.is-checked::after {
    content: "✓";
    color: var(--color-yellow, #f0a500);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.tags-widget__tag-name {
    font-size: 16px;
    color: #ccc;
    transition: color 0.15s;
}

/* Category picker */
.tags-category-picker {
    position: relative;
}

.tags-category-picker__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-gray, #1e1e1e);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.tags-category-picker__arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: solid var(--color-yellow);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: -3px;
}

.tags-category-picker__toggle[aria-expanded="true"] .tags-category-picker__arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.tags-category-picker__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-gray, #1e1e1e);
    border-radius: 8px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.tags-category-picker__dropdown.open {
    display: block;
}

.tags-category-picker__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tags-category-picker__option:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.tags-category-picker__option.is-selected {
    color: var(--color-yellow, #f0a500);
}


/* Добавление сервера - подтверждение прав */
.new-server__form-title,
.new-server__form-subtitle  {
    margin-bottom: 35px;
}
.new-server__form-subtitle{
    margin-top: 100px;
}
.new-server__block {
    width: fit-content;
}
.new-server__block .new-server__form {
    width: 100%;
    max-width: unset;
}
.new-server__block .juxmc-error {
    width: 0;
    min-width: 100%;
    overflow-wrap: break-word;
}
.new-server__form-description {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 70px;
}

.new-server__confirmation {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 70px;
}
.new-server__confirmation--input{
    margin-top: 0px;
}
.next__button{
    width: 100%;
    max-width: 155px;
}
.next__button:hover {
    background-color: rgb(201, 189, 24);
}


/* Страница 404 */
.error{
    text-align: center;
}
.error__number{
    color: var(--color-yellow);
    font-size: 96px;
    font-weight: 800;
}
.error__title{
    margin-bottom: 10px;
}
.error__description{
    max-width: 800px;
    margin-inline: auto;
}

@media (max-width: 1170px) {
    :root{
        --button-height: clamp(2.5625rem, 1.1559rem + 1.8587vw, 2.5rem) !important;
    }
    .boost-menu__servcie--title {
        font-size: clamp(1.75rem, 1.6433rem + 0.4878vw, 2rem);
    }
    .new-server__form-description,
    .server-info__text {
        font-size: clamp(0.8125rem, 0.7312rem + 0.3717vw, 1rem);
    }
    .error__number{
        font-size: clamp(4.375rem, 3.6702rem + 3.2218vw, 6rem);
    }
    /* 32px */
    .boost-menu__header--title {
        font-size: clamp(1.4375rem, 1.1974rem + 1.0976vw, 2rem);
    }
    /* 22px */
    .server-info__name,
    .server-info__screenshots--title,
    .user-servers__title {
        font-size: clamp(1rem, 0.8374rem + 0.7435vw, 1.375rem);
    }
    /* 18px */
    .error__description,
    .boost-menu__servcie--advantage,
    .server-info__tegs--item{
        font-size: clamp(0.875rem, 0.7666rem + 0.4957vw, 1.125rem);
    }
    .detail-text{
        font-size: clamp(0.75rem, 0.6433rem + 0.4878vw, 1rem);
    }
    /* 14px */
    .boost-menu__header--description {
        font-size: clamp(0.875rem, 0.8216rem + 0.2439vw, 1rem);
    }
    .server-info__button{
        height: clamp(3.125rem, 2.5287rem + 2.7261vw, 4.5rem);
        width: clamp(12.5rem, 11.8223rem + 3.0979vw, 14.0625rem);
    }
    .server-info__desc-section__text {
        font-size: clamp(0.8125rem, 0.7583rem + 0.2478vw, 0.9375rem);
        line-height: 1.8;
    }
    .server-info__icons {
        column-gap: clamp(1.875rem, 0.5197rem + 6.1958vw, 3.125rem);
    }
    .server-info__icon--img {
        width: clamp(2.5rem, 0.6868rem + 3.7175vw, 3.375rem) !important;
        height: clamp(2.5rem, 0.6868rem + 3.7175vw, 3.375rem) !important;
    }
    .new-server__form-subtitle{
        margin-bottom: clamp(4.375rem, 3.5618rem + 3.7175vw, 6.25rem);
    }
    .user-info {
        row-gap: clamp(4.375rem, 3.5618rem + 3.7175vw, 6.25rem);
    }
    .server-info__stats{
        gap: clamp(1.125rem, 0.6715rem + 2.0732vw, 2.1875rem);
    }
}
@media (max-width: 1100px) {
    .server-info__card-body {
        max-width: 100%;
    }
    .user-info {
        flex: none;
        column-gap: 40px;
    }
    .server-info__header {
        flex-wrap: wrap;
    }
    .server-info__buttons{
        flex-wrap: wrap;
    }
    .new-server__confirmation {
        flex-wrap: wrap;
    }
    .user-info__left {
        width: 37%;
    }
}
@media (max-width: 1050px) {
    .boost-menu__servcies {
        gap: 75px;
    }
}
@media (max-width: 1034px) {
    .server-info__desc-section__text {
        padding: 20px 22px;
    }
}
@media (max-width: 1000px) {
    .user-info {
        display: flex;
        flex-direction: column;
    }
    .user-info__left {
        width: 100%;
    }
    .user-info__email--input{
        max-width: 330px;
    }
    .user-info__actions {
        max-width: 330px;
    }
}
@media (max-width: 860px) {
    .boost-menu__servcies {
        gap: 50px;
    }
}
@media (max-width: 800px) {
    .boost-menu__servcies {
        gap: 50px;
        flex-direction: column;
    }
    .boost-menu__header {
        margin-bottom: 50px;
    }
    .server-info__gallery {
        flex-direction: column;
        gap: 22px;
    }
    .server-info__main-image,
    .server-info__gallery > .server-info__main-image:only-child {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 837 / 448;
    }
    .server-info__thumbnails {
        display: flex;
        flex-direction: row;
    }
    .server-info__thumbnail {
        width: 100%;
    }
}
@media (max-width: 700px) {
    .discount-tiers {
        flex-wrap: wrap;
        gap: 6px;
    }
    .discount-tier {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .check__button {
        width: 100%;
    }
    .next__button {
        max-width: 100%;
    }
}
@media (max-width: 467px) {
    .server-info__button{
        max-width: 100%;
        width: 100%;
    }
}

/* ── Модальное окно удаления сервера ── */
.delete-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-modal-overlay.is-open {
    opacity: 1;
}

.delete-modal-overlay[hidden] {
    display: none !important;
}

.delete-modal {
    position: relative;
    background: #1B1B1D;
    border: 1px solid #404042;
    border-radius: 12px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    text-align: center;
    opacity: 0;
    transform: scale(0.85) translateY(-20px);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
}

.delete-modal-overlay.is-open .delete-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.delete-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #c0392b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 1;
    padding: 4px;
    display: flex;
    transition: background-color 0.15s;
}

.delete-modal__close:hover {
    background: #a93226;
}
.delete-modal__close:focus {
    background: #a93226;
    outline: none;
}
.delete-modal__close:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
}

.delete-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.delete-modal__text {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 32px;
}

.delete-modal__currency {
    color: var(--color-yellow);
    font-weight: 700;
}

.delete-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-modal__btn {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-base);
    transition: background-color 0.15s;
}

.delete-modal__btn--cancel {
    background: #404042;
    color: #fff;
}

.delete-modal__btn--cancel:hover {
    background: #555558;
}

.delete-modal__btn--confirm {
    background: #c0392b;
    color: #fff;
}

.delete-modal__btn--confirm:hover {
    background: #a93226;
}

.delete-modal__btn--go {
    background: #27ae60;
    color: #fff;
}

.delete-modal__btn--go:hover {
    background: #219a52;
}

.ext-link-modal__warning {
    color: #c0392b;
    font-weight: 700;
}

.ext-link-modal__brand {
    color: var(--color-yellow);
    font-weight: 700;
}

/* ── Редактор полного описания (rich text) ── */
.desc-editor {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 705px;
}

.desc-editor__toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    flex-shrink: 0;
}

.desc-editor__divider {
    height: 1px;
    background: var(--color-gray-light);
    flex-shrink: 0;
}

.desc-editor__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: none;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s;
    padding: 4px;
    flex-shrink: 0;
}

.desc-editor__btn:hover {
    background: var(--color-gray-light);
}

.desc-editor__btn.is-active {
    background: var(--color-gray-light);
}

.desc-editor__btn.is-active .desc-editor__btn-icon {
    filter: brightness(0) saturate(100%) invert(83%) sepia(78%) saturate(752%) hue-rotate(2deg) brightness(103%) contrast(94%);
}

.desc-editor__btn-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.desc-editor:focus-within {
    border-color: var(--color-gray-light);
}
.desc-editor__content {
    flex: 1;
    min-height: 100px;
    max-height: 200px;
    padding: 10px 14px 4px;
    outline: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-yellow) transparent;
    font-size: 16px;
    font-family: var(--font-base);
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

.desc-editor__content::-webkit-scrollbar {
    width: 6px;
}

.desc-editor__content::-webkit-scrollbar-track {
    background: transparent;
}

.desc-editor__content::-webkit-scrollbar-thumb {
    background: var(--color-yellow);
    border-radius: 3px;
}

.desc-editor__content:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
    pointer-events: none;
}

.desc-editor__footer {
    display: flex;
    justify-content: flex-end;
    padding: 6px 12px;
    flex-shrink: 0;
}

/* ── Кликабельные скриншоты ── */
.screenshot-clickable {
    cursor: zoom-in;
    transition: opacity 0.15s;
}

.screenshot-clickable:hover {
    opacity: 0.85;
}

/* ── Модальное окно просмотра скриншота ── */
.screenshot-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-modal-overlay.is-open {
    opacity: 1;
}

.screenshot-modal-overlay[hidden] {
    display: none !important;
}

.screenshot-modal {
    position: relative;
    background: #1B1B1D;
    border: 1px solid #404042;
    border-radius: 12px;
    width: min(90vw, 900px);
    padding: 0;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.85) translateY(-20px);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
}

.screenshot-modal-overlay.is-open .screenshot-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.screenshot-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #c0392b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 1;
    padding: 4px;
    display: flex;
    transition: background-color 0.15s;
    z-index: 1;
}

.screenshot-modal__close:hover {
    background: #a93226;
}
.screenshot-modal__close:focus {
    background: #a93226;
    outline: none;
}
.screenshot-modal__close:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
}

.screenshot-modal__img {
    display: block;
    width: 100%;
    max-height: calc(90vh - 80px);
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.desc-editor__counter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.payment-success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.payment-success__text {
    font-size: 18px;
    color: #fff;
}

.payment-success__button {
    text-decoration: none;
}

/* ── Focus-visible: interactive elements ── */
.server-card__edit-btn:focus-visible,
.server-info__icons--link:focus-visible,
.server-info__purchases-toggle:focus-visible,
.delete-modal__btn:focus-visible,
.tags-category-picker__toggle:focus-visible,
.tags-category-picker__option:focus-visible,
.desc-editor__btn:focus-visible,
.confirm__button:focus-visible,
.next__button:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
}

/* ── Hover: server social links ── */
.server-info__icons--link .server-info__icon--img {
    transition: opacity var(--transition-duration);
}
.server-info__icons--link:hover .server-info__icon--img {
    opacity: 0.7;
}

/* ── Server card: hide container below desktop ── */
@media (max-width: 1200px) {
    .server-info__card-body {
        background: none;
        border-left: none;
        border-radius: 0;
        padding: 0;
    }
}
/* ── Server card: stack at medium screens ── */
@media (max-width: 900px) {
    .server-info__card-row {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 15px;
    }
    .server-info__card-left {
        width: 100%;
    }
    .server-info__card-left .server-placeholder {
        width: 100%;
        max-width: 100%;
    }
    .server-info__card-right {
        width: 100%;
    }
    .server-info__card-name-row .server-name {
        white-space: normal;
    }
}

/* ── Responsive improvements ── */
@media (max-width: 768px) {
    /* Server info logo: prevent fixed-width overflow */
    .server-info__logo {
        width: 100%;
        max-width: 468px;
    }

    /* Description, purchases, status: full width on mobile */
    .server-info__desc-section__text,
    .server-info__purchases,
    .server-status {
        max-width: 100%;
    }

    /* Reduce excessive bottom spacing */
    .user-servers {
        margin-bottom: 80px;
    }
    .server-info__box {
        margin-bottom: 40px;
    }

    /* Purchases grid: 2 columns on tablet */
    .server-info__purchases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Action buttons: increase to 40px for touch usability */
    .server-card__edit-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    /* Purchases grid: single column on small mobile */
    .server-info__purchases-grid {
        grid-template-columns: 1fr;
    }

    /* Social icons: wrap and reduce gap on small screens */
    .server-info__icons {
        flex-wrap: wrap;
        column-gap: 30px;
        row-gap: 20px;
    }
}

/* ── Per-field validation errors ── */
.field-error {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #e53935;
    line-height: 1.4;
}
.input--error {
    border-color: #e53935 !important;
}
.desc-editor.input--error {
    border-color: #e53935 !important;
}
