/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ СТИЛИ И СНЕЖНЫЙ ФОН ПЛАТФОРМЫ CRODS
   ========================================================================== */
html {
    height: 100vh;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    min-height: 0;
    margin: 0;
    padding: 0;
    background-color: #030406;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    position: relative;
}

.rich-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rich-text-toolbar__button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.055);
    color: #9bd9bf;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.rich-text-toolbar__button:hover {
    border-color: rgba(16, 185, 129, 0.48);
    background: rgba(16, 185, 129, 0.12);
    color: #d1fae5;
}

.neon-link {
    color: #6ee7b7;
    text-decoration: underline;
    text-decoration-color: rgba(16, 185, 129, 0.55);
    text-underline-offset: 3px;
}

.neon-link:hover {
    color: #a7f3d0;
}

.rich-text-content {
    overflow-wrap: anywhere;
}

.rich-link-modal {
    z-index: 12000;
    background: rgba(2, 4, 7, 0.76);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease;
}

.rich-link-modal[hidden] { display: none !important; }

.modal-window.rich-link-dialog {
    position: relative;
    width: min(440px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(140deg, rgba(16, 185, 129, 0.08), transparent 58%),
        rgba(13, 16, 21, 0.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 32px rgba(16, 185, 129, 0.09);
    animation: rich-link-enter 0.18s ease-out;
}

@keyframes rich-link-enter {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.rich-link-dialog__eyebrow {
    margin: 0 0 8px;
    color: #10b981;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.rich-link-dialog h2 {
    margin: 0 0 22px;
    color: #f4f4f5;
    font-size: 19px;
    font-weight: 800;
}

.rich-link-dialog__form {
    display: grid;
    gap: 9px;
}

.rich-link-dialog__form label {
    margin-top: 5px;
    color: #a7a9b0;
    font-size: 10px;
    font-weight: 700;
}

.rich-link-dialog__form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    outline: none;
    background: rgba(0, 0, 0, 0.28);
    color: #f4f4f5;
    font: inherit;
    font-size: 12px;
}

.rich-link-dialog__form input:focus {
    border-color: rgba(16, 185, 129, 0.56);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.09);
}

.rich-link-dialog__error {
    margin: 2px 0 0;
    color: #fca5a5;
    font-size: 10px;
}

.rich-link-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.rich-link-dialog__actions button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: #a7a9b0;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.rich-link-dialog__actions .rich-link-dialog__insert {
    border-color: rgba(16, 185, 129, 0.42);
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.08);
}

.rich-link-dialog__actions .rich-link-dialog__insert:hover {
    background: rgba(16, 185, 129, 0.22);
}

.authors-page,
.direct-messages-page {
    min-width: 0;
}

.authors-page__header,
.direct-messages-page__header {
    margin-bottom: 22px;
}

.authors-page__eyebrow {
    margin: 0 0 8px;
    color: #10b981;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.authors-page__header .page-title,
.direct-messages-page__header .page-title {
    margin: 0;
}

.authors-page__header .page-subtitle {
    margin: 8px 0 0;
    color: #777982;
    font-size: 12px;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.author-tile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 22px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(22, 25, 30, 0.82), rgba(9, 11, 15, 0.72));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.author-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
}

.author-tile__avatar {
    width: 76px;
    height: 76px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 50%;
    background: #11131a;
    object-fit: cover;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.11);
}

.author-tile__name {
    max-width: 100%;
    margin: 2px 0 0;
    overflow: hidden;
    color: #f4f4f5;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-role {
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.35px;
}

.author-role--admin { border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.08); color: #fbbf24; }
.author-role--developer { border-color: rgba(16, 185, 129, 0.28); background: rgba(16, 185, 129, 0.08); color: #6ee7b7; }
.author-role--moderator { border-color: rgba(96, 165, 250, 0.28); background: rgba(96, 165, 250, 0.08); color: #93c5fd; }
.author-role--user { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: #a1a1aa; }

.authors-page .author-role {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    align-items: center;
    justify-self: start;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 8px;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
}

.authors-page .author-role--admin {
    border-color: rgba(255, 76, 76, 0.7);
    background: rgba(255, 76, 76, 0.14);
    color: #ff6262;
    box-shadow: 0 0 9px rgba(255, 76, 76, 0.2);
}

.authors-page .author-role--moderator {
    border-color: rgba(186, 85, 211, 0.7);
    background: rgba(186, 85, 211, 0.14);
    color: #d78be9;
    box-shadow: 0 0 9px rgba(186, 85, 211, 0.2);
}

.authors-page .author-role--developer {
    border-color: rgba(0, 255, 128, 0.65);
    background: rgba(0, 255, 128, 0.12);
    color: #00e879;
    box-shadow: 0 0 9px rgba(0, 255, 128, 0.18);
}

.authors-page .author-role--user {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #b8bac2;
}

.authors-page .author-role--banned {
    border-color: rgba(255, 55, 75, 0.8);
    background: rgba(255, 35, 55, 0.18);
    color: #ff475d;
    box-shadow: 0 0 11px rgba(255, 35, 55, 0.35);
}

.author-tile__link {
    width: 100%;
    margin-top: 6px;
    padding: 10px 8px;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.06);
    color: #8bd9b7;
    font-size: 9px;
    text-align: center;
    text-decoration: none;
}

.authors-empty {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #858791;
    text-align: center;
}

.authors-search {
    display: flex;
    max-width: 620px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 9px;
    background: rgba(15, 17, 22, 0.72);
    color: #6ee7b7;
}

.authors-search > span { font-size: 22px; line-height: 1; }
.authors-search input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; color: #e4e4e7; font: inherit; font-size: 12px; }
.authors-search input::placeholder { color: #686b74; }
.authors-list { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.065); border-radius: 10px; background: rgba(13, 15, 19, 0.68); }
.authors-list__head,
.author-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.5fr) minmax(74px, 0.45fr) minmax(110px, 0.7fr) minmax(120px, 0.75fr);
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
}

.authors-list__head { border-bottom: 1px solid rgba(255, 255, 255, 0.065); color: #676a73; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.authors-list__rows { min-width: 0; }
.author-row { min-height: 55px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: background 0.15s ease; }
.author-row:last-child { border-bottom: 0; }
.author-row:hover { background: rgba(255, 255, 255, 0.025); }
.author-row__identity { display: flex; min-width: 0; align-items: center; gap: 12px; color: #eceef0; text-decoration: none; }
.author-row__avatar,
.direct-conversation__avatar,
.direct-chat__avatar { position: relative; display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; }
.author-row__avatar img,
.direct-conversation__avatar img,
.direct-chat__avatar img { width: 100%; height: 100%; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; background: #11131a; object-fit: cover; }
.author-row__name { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.author-row__id { color: #737680; font: 11px monospace; }
.author-row__status { display: inline-flex; align-items: center; gap: 8px; color: #92949c; font-size: 10px; }
.authors-list__rows:empty + .authors-empty { display: block; }
.authors-list .authors-empty { margin: 0; }
.authors-load-more {
    display: none;
    min-height: 40px;
    margin: 18px auto 0;
    padding: 0 18px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.07);
    color: #6ee7b7;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
}

.authors-load-more:not([hidden]) { display: block; }
.authors-load-more[hidden] { display: none; }
.authors-load-more:hover { background: rgba(16, 185, 129, 0.14); }
.authors-load-more:disabled { cursor: wait; opacity: 0.55; }

.presence-indicator {
    position: relative;
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 2px solid #11131a;
    border-radius: 50%;
    background: #777982;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.presence-indicator--online { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.65); }
.presence-indicator--idle { background: #facc15; box-shadow: 0 0 8px rgba(250, 204, 21, 0.55); }
.presence-indicator--offline { background: #777982; }
.author-row__avatar > .presence-indicator,
.direct-conversation__avatar > .presence-indicator,
.direct-chat__avatar > .presence-indicator,
.profile-author-avatar-wrap > .presence-indicator {
    position: absolute;
    right: -1px;
    bottom: -1px;
}

.direct-message-unread-badge {
    display: inline-flex;
    min-width: 17px;
    height: 17px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.32);
}

.direct-message-unread-badge[hidden] { display: none; }
.sidebar-item--messages { gap: 8px; }
.profile-support-contact { max-width: 330px; margin: 4px 0 0; color: #9698a0; font-size: 10px; line-height: 1.5; }

.direct-messages-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 12px;
    background: rgba(12, 14, 18, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.direct-conversations {
    min-width: 0;
    overflow: hidden;
    padding: 16px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.direct-conversations > h2 {
    margin: 2px 10px 14px;
    color: #7a7d86;
    font-size: 9px;
    letter-spacing: 1.2px;
}

.direct-conversation {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

.direct-conversation:hover,
.direct-conversation.is-active {
    border-color: rgba(16, 185, 129, 0.16);
    background: rgba(16, 185, 129, 0.07);
}

.direct-conversation > img,
.direct-chat__header > img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: #11131a;
    object-fit: cover;
}

.direct-conversation__details {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.direct-conversation__details strong {
    overflow: hidden;
    color: #e8e9ec;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.direct-conversation__details small {
    overflow: hidden;
    color: #777982;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.direct-conversations__empty {
    margin: 18px 10px;
    color: #777982;
    font-size: 11px;
    line-height: 1.6;
}

.direct-chat {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.direct-chat__header {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.direct-chat__header a {
    color: #e8e9ec;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.direct-chat__role { flex: 0 0 auto; margin-left: 2px; }

.direct-chat__messages {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
}

.direct-message {
    display: flex;
    justify-content: flex-start;
}

.direct-message--own { justify-content: flex-end; }

.direct-message__body {
    max-width: min(78%, 560px);
    padding: 10px 12px 7px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px 12px 12px 3px;
    background: rgba(255, 255, 255, 0.045);
    overflow-wrap: anywhere;
}

.direct-message--own .direct-message__body {
    border-color: rgba(16, 185, 129, 0.18);
    border-radius: 12px 12px 3px 12px;
    background: rgba(16, 185, 129, 0.085);
}

.direct-message__body p {
    margin: 0;
    color: #e4e4e7;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.direct-message__body time {
    display: block;
    margin-top: 6px;
    color: #737680;
    font-size: 9px;
    text-align: right;
}

.direct-message__image {
    display: block;
    max-width: min(100%, 360px);
    max-height: 360px;
    margin-top: 5px;
    border-radius: 8px;
    object-fit: contain;
}

.direct-chat__empty,
.direct-chat__placeholder {
    margin: auto;
    color: #777982;
    font-size: 12px;
    text-align: center;
}

.direct-chat__placeholder { padding: 32px; }
.direct-chat__placeholder > span { color: #10b981; font-size: 32px; }
.direct-chat__placeholder h2 { margin: 10px 0 6px; color: #d4d4d8; font-size: 14px; }
.direct-chat__placeholder p { margin: 0; line-height: 1.5; }

.direct-chat__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.direct-chat__composer textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    max-height: 120px;
    padding: 10px 11px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    outline: none;
    background: rgba(0, 0, 0, 0.24);
    color: #f4f4f5;
    font: inherit;
    font-size: 11px;
}

.direct-chat__composer textarea:focus { border-color: rgba(16, 185, 129, 0.38); }
.direct-chat__composer > .btn-download { min-height: 40px; padding: 0 14px; }
.direct-chat__attachment { position: relative; display: flex; min-height: 40px; align-items: center; }
.direct-chat__attach-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(16, 185, 129, 0.17); border-radius: 8px; background: rgba(16, 185, 129, 0.06); color: #8bd9b7; font-size: 18px; cursor: pointer; }
.direct-chat__attach-button:hover,
.direct-chat__attach-button[aria-expanded="true"] { border-color: rgba(16, 185, 129, 0.42); background: rgba(16, 185, 129, 0.13); }
.direct-chat__attachment-menu { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 8px); width: max-content; padding: 5px; border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 8px; background: #111419; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.direct-chat__attachment-menu[hidden] { display: none; }
.direct-chat__attachment-menu label { display: block; padding: 10px 12px; border-radius: 5px; color: #c9d2d7; font-size: 9px; font-weight: 800; cursor: pointer; }
.direct-chat__attachment-menu label:hover { background: rgba(16, 185, 129, 0.1); color: #6ee7b7; }
.direct-chat__file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.direct-chat__image-preview { position: relative; display: flex; grid-column: 1 / -1; width: fit-content; max-width: 100%; align-items: center; gap: 9px; padding: 7px 34px 7px 7px; border: 1px solid rgba(16, 185, 129, 0.19); border-radius: 8px; background: rgba(16, 185, 129, 0.045); }
.direct-chat__image-preview[hidden] { display: none; }
.direct-chat__image-preview img { width: 54px; height: 54px; border-radius: 5px; object-fit: cover; }
.direct-chat__image-preview span { max-width: 240px; overflow: hidden; color: #a7a9b0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.direct-chat__image-preview button { position: absolute; top: 4px; right: 4px; display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(239, 68, 68, 0.24); border-radius: 50%; background: rgba(239, 68, 68, 0.1); color: #fca5a5; font-size: 10px; cursor: pointer; }

.direct-messages-page {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding-top: 18px;
    padding-bottom: 18px;
}

.direct-messages-page__header { flex: 0 0 auto; margin-bottom: 14px; }
.direct-chat__avatar { width: 38px; height: 38px; flex-basis: 38px; }

.profile-about {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    align-items: stretch;
    gap: 28px;
    width: 100%;
    min-width: 0;
    padding: 22px 24px;
    border-color: rgba(16, 185, 129, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(120deg, rgba(16, 185, 129, 0.07), transparent 58%),
        rgba(9, 12, 16, 0.76);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 14px 38px rgba(0, 0, 0, 0.22);
}

.profile-about__copy {
    min-width: 0;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-socials {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
}

.profile-socials > h2 {
    margin: 1px 0 0;
    color: #8a8b92;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.profile-socials__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-social-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.045);
    color: #c9d2d7;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.profile-social-link:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}

.profile-social-link__icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 900;
}

.profile-social-link__arrow { margin-left: auto; color: #6ee7b7; }

.profile-status-widget {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: #9da0a8;
    font-size: 11px;
}

.profile-status-widget strong { color: #e4e4e7; font-weight: 700; }
.profile-status-widget__state { display: flex; align-items: center; gap: 7px; color: #6ee7b7; font-weight: 700; }
.profile-status-widget__state i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 9px rgba(16, 185, 129, 0.7); }

.profile-message-button {
    margin-top: 5px;
    padding: 9px 12px;
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #8bd9b7;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.settings-social-form {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
}

.settings-social-form label { color: #a0a0a5; font-size: 11px; font-weight: 700; }
.settings-social-form .settings-submit { grid-column: 2; }

@media (max-width: 760px) {
    .profile-about { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .profile-about__copy { padding-right: 0; padding-bottom: 16px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
    .direct-messages-layout { grid-template-columns: minmax(0, 1fr); }
    .direct-conversations { max-height: 230px; overflow: hidden; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
}

@media (max-width: 520px) {
    .direct-chat__composer { grid-template-columns: minmax(0, 1fr) auto; }
    .direct-chat__composer textarea { grid-column: 1 / -1; }
    .settings-social-form { grid-template-columns: minmax(0, 1fr); }
    .settings-social-form .settings-submit { grid-column: 1; }
    .profile-socials__links { grid-template-columns: minmax(0, 1fr); }
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(105vh) translateX(15px); opacity: 0; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.05); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.1); }

/* ==========================================================================
   2. ЛЕЙАУТ И СИНХРОНИЗИРОВАННАЯ КИБЕРПАНК-НАВИГАЦИЯ (МАТОВАЯ ПОЛУПРОЗРАЧНОСТЬ)
   ========================================================================== */
.launcher-layout {
    display: flex;
    flex: 1;
    height: 100vh;
    min-height: 0;
    width: 100vw;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Все сайдбары теперь монолитные, полупрозрачные и абсолютно одинаковые! */
.sidebar, .game-sidebar-container {
    width: 220px;
    background: rgba(15, 15, 18, 0.5) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-logo {
    display: block;
    margin-bottom: 24px;
    padding-left: 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    animation: logo-breathe 3.2s ease-in-out infinite;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.sidebar-logo:hover {
    color: #10b981;
    text-shadow: 0 0 14px rgba(16, 185, 129, 0.28);
}

.sidebar-navigation {
    display: flex;
    flex-direction: column;
}

.sidebar-section-label {
    margin: 0 0 7px;
    padding-left: 12px;
    color: #555861;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.sidebar-section-label--mods { margin-top: 16px; }

.sidebar-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 16px;
}

.sidebar-admin-label {
    margin: 4px 0 7px;
    padding-left: 12px;
    color: #3b3c42;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    padding: 12px 4px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.sidebar-social-link {
    color: #41434a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-social-link:hover,
.sidebar-social-link:focus-visible {
    color: #ffffff;
    text-shadow: 0 0 9px rgba(255, 255, 255, 0.35);
}

.home-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #d7d8dc;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
}

.mod-card-placeholder {
    display: flex;
    height: 150px;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: #0d0e12;
    color: #62646c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.rating-star { color: #d6bd69; }

.home-dashboard {
    display: flex;
    width: min(1000px, calc(100% - 48px));
    min-height: 65vh;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    margin: 0 auto;
    padding: 32px 0;
}

.home-dashboard__heading .page-title {
    margin: 0;
    color: #e7e7ea;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.home-dashboard__heading p {
    margin: 8px 0 0;
    color: #72747d;
    font-size: 12px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-stat-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background: rgba(20, 20, 24, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.home-stat-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(25, 25, 30, 0.68);
}

.home-stat-card__value {
    color: #f4f4f6;
    font-family: "Segoe UI", "Arial", sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.home-stat-card__label {
    color: #777982;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.5;
}

.home-page .home-dashboard {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    gap: 18px;
    margin: 0;
    padding: 0 0 24px;
}

.home-page .home-dashboard__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.home-eyebrow {
    margin: 0 0 7px;
    color: #696c75;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.home-page .home-dashboard__heading p {
    margin: 0 0 2px;
}

.home-discovery {
    width: 100%;
}

.home-feature-layout {
    display: flex;
    min-height: 330px;
    gap: 20px;
}

.home-featured-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 330px;
    flex: 1.86 1 0;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 75% 15%, rgba(86, 97, 112, 0.25), transparent 44%),
        linear-gradient(135deg, rgba(33, 37, 45, 0.95), rgba(10, 11, 14, 0.96));
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    isolation: isolate;
    text-align: left;
}

.home-featured-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 4, 6, 0.8), rgba(3, 4, 6, 0.08) 80%),
        linear-gradient(0deg, rgba(3, 4, 6, 0.88), transparent 72%);
    content: "";
}

.home-featured-card__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-featured-card:hover .home-featured-card__image {
    transform: scale(1.035);
}

.home-featured-card__content {
    max-width: 78%;
}

.home-featured-card__eyebrow,
.home-topic-card__eyebrow {
    color: rgba(215, 218, 224, 0.56);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.home-featured-card h2 {
    margin: 10px 0 7px;
    color: #fff;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.home-featured-card p {
    margin: 0 0 18px;
    color: rgba(234, 236, 240, 0.72);
    font-size: 12px;
}

.home-featured-card__button {
    min-width: 124px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-featured-card__button:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.home-featured-card__index {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.48);
    font: 700 9px/1 monospace;
    letter-spacing: 1px;
}

.home-featured-card--empty {
    justify-content: center;
    cursor: default;
}

.home-featured-card--empty h2 {
    max-width: 480px;
    font-size: clamp(22px, 3vw, 32px);
}

.home-featured-card--empty p {
    max-width: 360px;
    line-height: 1.6;
}

.home-topic-stack {
    display: grid;
    min-width: 260px;
    flex: 1 1 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-topic-card {
    position: relative;
    display: flex;
    min-height: 90px;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background-color: rgba(18, 19, 24, 0.65);
    background-image:
        repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.018) 12px 13px),
        radial-gradient(ellipse at 92% 50%, rgba(99, 109, 130, 0.15), transparent 45%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.home-topic-card:hover {
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(24, 26, 32, 0.76);
}

.home-topic-card--graphics {
    background-image:
        repeating-linear-gradient(0deg, transparent 0 14px, rgba(255, 255, 255, 0.017) 14px 15px),
        radial-gradient(ellipse at 92% 50%, rgba(104, 85, 112, 0.17), transparent 45%);
}

.home-topic-card--performance {
    background-image:
        repeating-linear-gradient(45deg, transparent 0 15px, rgba(255, 255, 255, 0.018) 15px 16px),
        radial-gradient(ellipse at 92% 50%, rgba(65, 113, 92, 0.16), transparent 45%);
}

.home-topic-card__index {
    color: rgba(255, 255, 255, 0.3);
    font: 700 10px/1 monospace;
}

.home-topic-card h2 {
    margin: 6px 0 0;
    color: #d7d8dc;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 800;
    letter-spacing: 0.65px;
}

.home-topic-card__mark {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.025);
}

.home-popular {
    margin-top: 30px;
}

.home-popular__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-popular__heading h2 {
    margin: 0;
    color: #e8e9ec;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.home-popular__count {
    color: #5e6069;
    font: 700 9px/1 monospace;
    letter-spacing: 0.7px;
}

.home-popular__rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
}

.home-popular-card {
    position: relative;
    display: flex;
    width: 190px;
    height: 210px;
    flex: 0 0 190px;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: rgba(19, 20, 25, 0.72);
    color: #e8e9ec;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-popular-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(25, 27, 33, 0.9);
}

.home-popular-card > img,
.home-popular-card__placeholder {
    display: grid;
    width: 100%;
    height: 158px;
    flex: 0 0 158px;
    place-items: center;
    background: linear-gradient(135deg, #1d2027, #0c0d10);
    color: #696c75;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    object-fit: cover;
}

.home-popular-card__title {
    display: -webkit-box;
    overflow: hidden;
    padding: 11px 12px;
    color: #d2d3d8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-popular__empty {
    margin: 0;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    color: #777982;
    font-size: 11px;
    text-align: center;
}

.home-card-screenshots { display: none; }

.admin-scroll-container.downloads-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.downloads-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.downloads-page__header h1 {
    margin: 0;
}

.downloads-page__header .page-subtitle {
    margin-top: 7px;
    color: #777982;
}

.downloads-clear-button {
    border-color: rgba(239, 68, 68, 0.22);
    color: #b06b70;
}

.downloads-clear-button:hover {
    border-color: rgba(239, 68, 68, 0.48);
    background: rgba(127, 29, 29, 0.2);
    color: #f08a8f;
}

.downloads-clear-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.downloads-notice {
    min-height: 0;
    margin: -8px 0 0;
    color: #8d929c;
    font-size: 11px;
}

.downloads-notice:empty {
    display: none;
}

.downloads-notice.is-error {
    color: #ef7777;
}

.downloads-empty-state {
    grid-column: 1 / -1;
    padding: 54px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(15, 16, 20, 0.42);
    text-align: center;
}

.downloads-empty-state h2 {
    margin: 0 0 8px;
    color: #c5c7cd;
    font-size: 14px;
}

.downloads-empty-state p {
    margin: 0;
    color: #6b6e77;
    font-size: 11px;
}

.create-page {
    box-sizing: border-box;
    width: 100%;
    padding: 18px 24px 40px;
}

.create-page__inner {
    width: min(940px, 100%);
    margin: 0 auto;
}

.create-page__header {
    margin-bottom: 20px;
}

.create-page__eyebrow {
    margin: 0 0 8px;
    color: #62646c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.create-page__header .page-title {
    margin: 0;
    color: #f0f0f2;
    font-size: 22px;
    letter-spacing: 0.3px;
}

.create-page__header .page-subtitle {
    margin-top: 7px;
    color: #777982;
    font-size: 12px;
}

.create-form {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background: rgba(17, 18, 22, 0.7);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.create-form__section {
    padding: 22px 26px 24px;
}

.create-form__section + .create-form__section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.create-form__section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.create-form__step {
    display: inline-flex;
    min-width: 29px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px;
    color: #8a8b92;
    font: 700 10px/1 monospace;
}

.create-form__section-heading h2 {
    margin: 1px 0 4px;
    color: #e3e4e7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
}

.create-form__section-heading p {
    margin: 0;
    color: #686a72;
    font-size: 10px;
}

.create-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.create-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.create-field > label,
.create-field__label {
    color: #a0a0a5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25px;
}

.create-form__fields > .create-field:first-child,
.create-form__fields > .create-field:nth-child(2),
.create-form__fields > .create-field:nth-child(3) {
    grid-column: 1 / -1;
}

.create-field input,
.create-field textarea,
.create-select-wrap select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 6px;
    outline: none;
    background: rgba(5, 6, 9, 0.58);
    color: #e8e8eb;
    font: inherit;
    font-size: 12px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.create-field input::placeholder,
.create-field textarea::placeholder { color: #555760; }

.create-field input:focus,
.create-field textarea:focus,
.create-select-wrap select:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(5, 6, 9, 0.78);
}

.create-field textarea {
    min-height: 94px;
    resize: vertical;
    line-height: 1.55;
}

.create-select-wrap {
    position: relative;
}

.create-select-wrap::after {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #777982;
    border-bottom: 1px solid #777982;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.create-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    cursor: pointer;
}

.create-select-wrap option {
    background: #17181d;
    color: #e8e8eb;
}

.custom-category-select {
    position: relative;
    z-index: 3;
}
.custom-category-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}
.custom-category-select__trigger {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 6px;
    background: rgba(5, 6, 9, 0.72);
    color: #e8e8eb;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.custom-category-select__trigger:hover,
.custom-category-select.is-open .custom-category-select__trigger {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}
.custom-category-select__chevron { color: #10b981; transition: transform 0.18s ease; }
.custom-category-select.is-open .custom-category-select__chevron { transform: rotate(180deg); }
.custom-category-select__menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 40;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 9px;
    background: rgba(12, 15, 20, 0.97);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 18px rgba(16, 185, 129, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform-origin: top center;
    animation: category-menu-enter 0.22s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.custom-category-select__menu[hidden] { display: none; }
.custom-category-select__search {
    box-sizing: border-box;
    position: sticky;
    top: -8px;
    z-index: 1;
    width: 100%;
    min-height: 34px;
    margin-bottom: 5px;
    padding: 8px 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    outline: none;
    background: rgba(8, 10, 14, 0.98);
    color: #e4e4e7;
    font: inherit;
    font-size: 10px;
}
.custom-category-select__search:focus {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}
.custom-category-select__search::placeholder { color: #686b74; }
@keyframes category-menu-enter {
    from { opacity: 0; transform: translateY(-8px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .custom-category-select__menu { animation: none; }
}
.custom-category-select__groups,
.custom-category-select__options {
    margin: 0;
    padding: 0;
    list-style: none;
}
.custom-category-select__empty {
    padding: 8px 9px;
    color: #686b74;
    font-size: 9px;
}
.custom-category-select__group + .custom-category-select__group { margin-top: 8px; }
.custom-category-select__game {
    display: block;
    padding: 7px 9px 5px;
    color: #10b981;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.custom-category-select__options button {
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #c9cbd1;
    font: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.custom-category-select__options button:hover,
.custom-category-select__options button[aria-selected="true"] {
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
}
.custom-category-select__empty,
.custom-category-select__error {
    padding: 8px 9px;
    color: #9296a0;
    font-size: 11px;
}
.custom-category-select__error { padding-left: 0; color: #ff7777; }

.create-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.create-dropzone {
    position: relative;
    display: flex;
    min-height: 142px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.17);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
    color: #898b94;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.create-dropzone:hover,
.create-dropzone.is-dragging {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.035);
    color: #d3d4d8;
}

.create-dropzone.is-selected {
    border-color: rgba(16, 185, 129, 0.72);
    background: rgba(16, 185, 129, 0.055);
}

.create-dropzone__input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.create-dropzone__plus {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #b6b8bf;
    font-size: 21px;
    font-weight: 300;
    line-height: 1;
}

.create-dropzone.is-selected .create-dropzone__plus {
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.settings-page {
    box-sizing: border-box;
    width: 100%;
    padding: 20px 24px 44px;
}

.settings-page__inner {
    display: flex;
    width: min(820px, 100%);
    flex-direction: column;
    gap: 18px;
    margin: 0 auto;
}

.settings-page__header {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-page__header .page-title {
    margin: 0;
}

.settings-page__header .page-subtitle {
    margin: 7px 0 0;
    color: #777982;
}

.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    background: rgba(20, 20, 24, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.settings-panel__heading h2 {
    margin: 0 0 6px;
    color: #e9eaed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.settings-panel__heading p {
    margin: 0;
    color: #747782;
    font-size: 11px;
    line-height: 1.55;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.settings-form textarea,
.settings-form input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(8, 9, 12, 0.82);
    color: #e6e7ea;
    font: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.settings-form textarea {
    min-height: 96px;
    padding: 11px 12px;
    resize: vertical;
}

.settings-form input {
    height: 39px;
    padding: 0 11px;
}

.settings-form textarea:focus,
.settings-form input:focus {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(10, 12, 15, 0.96);
}

.settings-form input:disabled {
    border-color: rgba(255, 255, 255, 0.035);
    color: #62646c;
    cursor: not-allowed;
}

.settings-privacy-form { gap: 12px; }
.privacy-toggle {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 8px;
    background: rgba(8, 9, 12, 0.55);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.privacy-toggle:hover { border-color: rgba(16, 185, 129, 0.32); }
.privacy-toggle__copy { display: grid; gap: 5px; }
.privacy-toggle__copy strong { color: #e4e6eb; font-size: 11px; }
.privacy-toggle__copy small { color: #777982; font-size: 10px; line-height: 1.45; }
.settings-privacy-form .privacy-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.privacy-toggle__switch {
    position: relative;
    width: 38px;
    height: 21px;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.privacy-toggle__switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #858791;
    content: "";
    transition: transform 0.18s ease, background 0.18s ease;
}
.settings-privacy-form input:checked + .privacy-toggle__switch {
    border-color: rgba(16, 185, 129, 0.65);
    background: rgba(16, 185, 129, 0.18);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}
.settings-privacy-form input:checked + .privacy-toggle__switch::after {
    transform: translateX(17px);
    background: #10b981;
}
.settings-privacy-form input:focus-visible + .privacy-toggle__switch {
    outline: 2px solid #6ee7b7;
    outline-offset: 3px;
}

.settings-submit {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 14px;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.06);
    color: #8bd9b7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.settings-submit:hover:not(:disabled) {
    border-color: rgba(16, 185, 129, 0.48);
    background: rgba(16, 185, 129, 0.14);
    color: #b7f5d6;
}

.settings-submit:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.settings-form__notice,
.settings-notice {
    min-height: 0;
    margin: 0;
    color: #8b8e98;
    font-size: 11px;
    line-height: 1.45;
}

.settings-form__notice:empty {
    display: none;
}

.settings-form__notice.is-error {
    color: #ef858b;
}

.settings-notice--success:not([hidden]) {
    padding: 12px 14px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.07);
    color: #80d5ae;
    text-align: center;
}

.settings-avatar {
    display: flex;
    align-items: center;
    gap: 18px;
}

.settings-avatar__current {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: #08090c;
}

.settings-avatar__current img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-dropzone {
    position: relative;
    display: flex;
    min-height: 124px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
    color: #92949c;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.settings-avatar-dropzone:hover,
.settings-avatar-dropzone.is-dragging {
    border-color: rgba(16, 185, 129, 0.58);
    background: rgba(16, 185, 129, 0.045);
    color: #d3d4d8;
}

.settings-avatar-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.settings-avatar-dropzone__plus {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #c1c3c9;
    font-size: 20px;
    font-weight: 300;
}

.settings-avatar-dropzone__title {
    max-width: 400px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.5;
}

.settings-avatar-dropzone__hint {
    color: #646771;
    font-size: 9px;
}

.settings-panel--security {
    gap: 19px;
}

.settings-account-form {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.settings-field__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.settings-field__heading label {
    color: #aeb0b7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.settings-field__heading > span {
    color: #70737c;
    font-size: 10px;
}

.settings-field__heading strong {
    color: #c4c6cc;
    font-weight: 600;
}

.settings-field__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-field__controls input {
    flex: 1;
}

.settings-field__controls--end {
    justify-content: flex-end;
}

.settings-password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.settings-crop-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 3, 5, 0.84);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.settings-crop-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.settings-crop-modal__window {
    position: relative;
    display: flex;
    width: min(540px, 100%);
    max-height: 90vh;
    flex-direction: column;
    gap: 16px;
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 16, 20, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
}

.settings-crop-modal__window h2 {
    margin: 0;
    color: #e7e8eb;
    font-size: 14px;
    font-weight: 800;
}

.settings-crop-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #8a8c94;
    font: 24px/1 sans-serif;
    cursor: pointer;
}

.settings-crop-modal__close:hover {
    color: #fff;
}

.settings-crop-modal__image {
    width: 100%;
    height: min(52vh, 360px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: #08090c;
}

.settings-crop-modal__image img {
    display: block;
    max-width: 100%;
}

.settings-crop-modal .cropper-view-box,
.settings-crop-modal .cropper-face {
    border-radius: 50%;
}

.settings-crop-modal__zoom {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr);
    align-items: center;
    gap: 16px;
    color: #888b94;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.settings-crop-modal__zoom input {
    width: 100%;
    accent-color: #10b981;
}

.settings-crop-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.settings-crop-modal__cancel {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    color: #a0a2aa;
    font-size: 10px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .settings-page { padding: 14px 14px 30px; }
    .settings-panel { padding: 17px; }
    .settings-avatar { align-items: stretch; flex-direction: column; }
    .settings-avatar__current { width: 60px; height: 60px; flex-basis: 60px; }
    .settings-password-fields { grid-template-columns: minmax(0, 1fr); }
    .settings-field__heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .settings-field__controls { align-items: stretch; flex-direction: column; }
    .settings-field__controls .settings-submit { align-self: flex-start; }
}

.create-dropzone__prompt {
    max-width: 260px;
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.create-dropzone__preview {
    display: flex;
    max-width: 100%;
    gap: 5px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.create-dropzone__preview-item {
    position: relative;
    display: block;
    flex: 0 0 auto;
}

.create-dropzone__preview-item img {
    width: 38px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    object-fit: cover;
}

.create-dropzone__preview-item .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(15, 16, 20, 0.88);
    color: #fff;
    font: 13px/1 Arial, sans-serif;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.create-dropzone__preview-item:hover .remove-btn,
.create-dropzone__preview-item .remove-btn:focus-visible {
    opacity: 1;
}

.create-dropzone__preview-item .remove-btn:hover {
    background: rgba(150, 35, 45, 0.94);
    transform: scale(1.08);
}

.create-field__hint {
    color: #5f6169;
    font-size: 9px;
    line-height: 1.45;
}

.create-form__compact-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
    gap: 12px;
    margin-top: 18px;
}

.create-form__compact-fields .create-field { gap: 6px; }
.create-form__compact-fields .create-field input { padding: 9px 10px; font-size: 11px; }

.create-form__section--submit {
    padding-top: 18px;
    padding-bottom: 22px;
}

.create-submit-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.07);
    color: rgba(128, 208, 174, 0.82);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.create-submit-button:hover {
    border-color: rgba(16, 185, 129, 0.62);
    background: rgba(6, 75, 48, 0.62);
    color: #b7f5d6;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.13);
}

.create-submit-button:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.7);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .home-stats { grid-template-columns: 1fr; }
    .home-stat-card { min-height: 110px; padding: 20px; }
    .home-dashboard { min-height: 0; gap: 20px; }
    .home-feature-layout { flex-direction: column; }
    .home-featured-card { min-height: 300px; flex: auto; }
    .home-topic-stack { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
    .home-topic-card { min-height: 110px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px; }
    .home-topic-card h2 { font-size: 9px; line-height: 1.4; }
    .home-topic-card__mark { position: absolute; right: 10px; bottom: 10px; width: 18px; height: 18px; }

    .admin-scroll-container.create-page { padding: 14px 14px 28px; }
    .create-form__section { padding: 18px 16px 20px; }
    .create-form__compact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .create-form__compact-fields .create-field--size { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .home-page .home-dashboard__heading { align-items: flex-start; flex-direction: column; }
    .home-feature-layout { min-height: 0; gap: 12px; }
    .home-featured-card { min-height: 270px; padding: 20px; }
    .home-featured-card__content { max-width: 100%; }
    .home-topic-stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .home-topic-card { min-height: 72px; flex-direction: row; align-items: center; padding: 12px 14px; }
    .home-topic-card__mark { position: static; width: 21px; height: 21px; }
    .home-popular { margin-top: 22px; }
    .home-popular-card { width: 160px; height: 186px; flex-basis: 160px; }
    .home-popular-card > img,
    .home-popular-card__placeholder { height: 138px; flex-basis: 138px; }
    .downloads-page__header { align-items: flex-start; flex-direction: column; }
    .create-upload-grid,
    .create-form__fields { grid-template-columns: minmax(0, 1fr); }
    .create-form__fields > .create-field { grid-column: 1; }
    .create-form__compact-fields { grid-template-columns: minmax(0, 1fr); }
    .create-form__compact-fields .create-field--size { grid-column: 1; }
    .create-dropzone { min-height: 120px; }
}

@keyframes logo-breathe {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-logo { animation: none; }
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #4b4d54;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
}

.sidebar-item__icon {
    display: inline-flex;
    width: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    color: #777982;
    font-size: 13px;
    line-height: 1;
    filter: saturate(0.75);
    transition: color 0.15s ease, filter 0.15s ease, text-shadow 0.15s ease;
}

.sidebar-item__icon--favorites {
    color: #fb7185;
    filter: drop-shadow(0 0 4px rgba(251, 113, 133, 0.36));
}

.sidebar-item:hover .sidebar-item__icon,
.sidebar-item.active .sidebar-item__icon {
    color: #a7f3d0;
    filter: saturate(1);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.32);
}

.sidebar-item:hover .sidebar-item__icon--favorites,
.sidebar-item.active .sidebar-item__icon--favorites {
    color: #fb7185;
    filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.55));
}

.sidebar-item > span:not(.sidebar-item__icon):not(.direct-message-unread-badge) {
    min-width: 0;
}

.sidebar-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02);
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-item.mod-panel-active {
    background-color: rgba(16, 185, 129, 0.06); 
    color: #10b981 !important; 
    border: 1px solid rgba(16, 185, 129, 0.15); 
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.form-validation-error {
    display: block;
    margin-top: 5px;
    color: #ff7777;
    font-size: 10px;
    line-height: 1.4;
}

.form-validation-control--invalid {
    border-color: rgba(255, 76, 76, 0.88) !important;
    box-shadow: 0 0 0 2px rgba(255, 76, 76, 0.12), 0 0 12px rgba(255, 76, 76, 0.16) !important;
}

.create-field.form-validation-invalid .create-dropzone {
    border-color: rgba(255, 76, 76, 0.88);
    box-shadow: 0 0 12px rgba(255, 76, 76, 0.12);
}

.ad-slot {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    background: rgba(20, 20, 24, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #4b4d54;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: adSlotFadeIn 0.3s ease-out both;
}

.ad-slot__label {
    color: #4b4d54;
    font-size: 9px;
    opacity: 0.75;
    text-transform: uppercase;
}

.ad-slot__format {
    color: #4b4d54;
    font-size: 8px;
    font-weight: 600;
    opacity: 0.65;
}

@keyframes adSlotFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-slot--sidebar {
    width: 100%;
    min-height: 150px;
    margin: 0 0 12px;
    flex-shrink: 0;
    animation: none;
}

.ad-slot--banner {
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: calc(100% - 80px);
    max-width: 100%;
    min-height: 90px;
    margin: 16px 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    background: rgba(20, 20, 24, 0.4) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.ad-slot--banner .ad-slot__label,
.ad-slot--banner .ad-slot__format {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 1;
    text-transform: uppercase;
}

.main-content {
    flex: 1;
    height: 100vh;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    box-sizing: border-box;
    height: 56px;
    background: rgba(15, 15, 18, 0.5) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1000 !important;
}


/* Центральная рабочая область (Матовый аккуратный блок) */
.admin-scroll-container {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 30px 40px;
}

.sidebar { height: 100vh; box-sizing: border-box; }
.is-moderation-page .mod-tabs-container {
    max-width: 100%;
    flex: 0 0 auto;
    overflow-x: auto;
    white-space: nowrap;
}
.is-moderation-page .mod-tab-btn { flex: 0 0 auto; }
.admin-scroll-container.create-page,
.admin-scroll-container.settings-page,
.is-moderation-page .admin-scroll-container {
    height: calc(100vh - 56px - 44px);
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.is-messages-page .sidebar { overflow: hidden; }

body.is-messages-page {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.is-messages-page .launcher-layout {
    height: 100vh;
    min-height: 0;
}

.is-messages-page .main-content {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

#moderationSupport,
#moderationTicketMessages,
#moderationTicketMessages .support-message,
#moderationTicketMessages .support-message p {
    user-select: text !important;
    -webkit-user-select: text !important;
}

.launcher-content-bg {
    background-color: rgba(6, 7, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.profile-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-bottom: 40px;
}

.profile-author-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 28px;
    padding: 24px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.profile-author-identity {
    display: flex;
    flex: 0 1 370px;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.profile-author-avatar-wrap {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
}

.profile-author-avatar {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: #11131a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-author-id {
    position: absolute;
    right: -5px;
    bottom: 1px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: #08090c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    color: #8a8b92;
    font: 800 9px monospace;
}

.profile-author-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.profile-author-name {
    overflow-wrap: anywhere;
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.profile-about {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    align-items: stretch;
    gap: 28px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 22px 24px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(120deg, rgba(16, 185, 129, 0.07), transparent 58%),
        rgba(9, 12, 16, 0.76);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.045),
        0 14px 38px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-about:hover {
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 14px 36px rgba(0, 0, 0, 0.24),
        0 0 30px rgba(16, 185, 129, 0.075);
}

.profile-about {
    align-self: flex-start;
}

.profile-about h2 {
    margin: 1px 0 9px;
    color: #8a8b92;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.profile-about__text {
    box-sizing: border-box;
    width: 100%;
    max-width: min(980px, 100%);
    height: auto;
    min-height: unset;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #c3ccd2;
    font-size: 13px;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: left;
    white-space: pre-wrap;
    user-select: text;
    -webkit-user-select: text;
}

.profile-publications-title {
    margin-bottom: 16px;
    color: #62646c;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.page-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.page-subtitle {
    margin: 4px 0 0 0;
    font-size: 11px;
    color: #3b3c42;
    font-weight: 600;
}

.category-header {
    margin-bottom: 28px;
    padding: 16px 20px 20px;
    background: rgba(20, 20, 24, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* ========================================================================== 
   3. КНОПКИ, БЭДЖИ И ТАБЛИЦЫ
   ========================================================================== */
.btn-download {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-download:hover { background-color: rgba(255, 255, 255, 0.06); }

.select-role-admin {
    background-color: #030406;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 11px;
    outline: none;
    cursor: pointer;
}

.badge-role { font-size: 9px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; font-family: monospace; }
.badge-account-banned,
.banned-author-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid rgba(239, 68, 68, 0.24);
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.08);
    color: rgba(255, 115, 115, 0.72);
    font: 800 9px/1.2 monospace;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}
.account-ban-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(239, 68, 68, 0.32);
    border-radius: 8px;
    background: rgba(90, 20, 25, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #ff8585;
    font-size: 13px;
}
.account-ban-notice strong {
    color: #ff6262;
    font-size: 14px;
}
.account-ban-notice span {
    color: #e2a0a0;
    overflow-wrap: anywhere;
}
.badge-admin { background-color: rgba(239, 68, 68, 0.1); color: #ff4a4a; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-moderator { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-author { background-color: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-user { background-color: rgba(255, 255, 255, 0.03); color: #4b4d54; border: 1px solid rgba(255, 255, 255, 0.05); }

.mod-tabs-container {
    display: flex;
    gap: 4px;
    background-color: rgba(3, 4, 6, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3px;
    border-radius: 6px;
    margin-bottom: 20px;
    width: fit-content;
}

.mod-tab-btn {
    text-decoration: none;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3b3c42;
    transition: all 0.15s ease;
}
.mod-tab-btn.active {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.users-table-wrapper {
    background-color: rgba(6, 7, 10, 0.4);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.users-control-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.users-control-table th {
    background-color: rgba(6, 7, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: #3b3c42;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    padding: 12px 16px;
}
.users-control-table td { padding: 10px 16px; color: #8a8b92; border-bottom: 1px solid rgba(255, 255, 255, 0.01); }
.users-control-table tr:hover { background-color: rgba(255, 255, 255, 0.01); }
.text-right-admin { text-align: right; }
.user-edit-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-right: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: #b6b8bf;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-edit-trigger:hover:not(:disabled) {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.09);
    color: #6ee7b7;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.08);
}
.user-edit-trigger:disabled {
    color: #4a4b52;
    cursor: not-allowed;
    opacity: 0.68;
}
.user-edit-window {
    box-sizing: border-box;
    width: min(520px, calc(100vw - 32px));
    max-height: min(88vh, 760px);
    overflow-y: auto;
    padding: 28px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(13, 15, 19, 0.94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.user-edit-heading { margin-bottom: 22px; }
.user-edit-heading > span {
    color: #10b981;
    font: 800 9px/1.4 monospace;
    letter-spacing: 1.5px;
}
.user-edit-heading h2 {
    margin: 8px 0 0;
    color: #f1f1f3;
    font-size: 18px;
    overflow-wrap: anywhere;
}
.user-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.user-edit-fields label {
    margin-top: 8px;
    color: #868891;
    font-size: 10px;
    font-weight: 800;
}
.user-edit-fields input,
.user-edit-fields textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 6px;
    outline: none;
    background: rgba(0, 0, 0, 0.28);
    color: #e8e9ec;
    font: inherit;
    font-size: 12px;
}
.user-edit-fields input:focus,
.user-edit-fields textarea:focus { border-color: rgba(16, 185, 129, 0.45); }
.user-edit-reset-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}
.user-edit-reset-button {
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    color: #92949b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.25px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-edit-reset-button:hover,
.user-edit-reset-button.is-selected {
    border-color: rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.07);
    color: #fde68a;
}
.user-edit-reset-hint {
    min-height: 16px;
    margin: 8px 0 0;
    color: #b9a761;
    font-size: 10px;
}
.user-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}
.user-edit-cancel,
.user-edit-save {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: #a4a6ad;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.user-edit-save {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.user-edit-save:hover:not(:disabled) { background: rgba(16, 185, 129, 0.17); color: #6ee7b7; }
.user-edit-save:disabled { cursor: wait; opacity: 0.6; }

.author-application-card {
    display: flex;
    max-width: 290px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
    padding: 13px 15px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.045);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.author-application-card p {
    margin: 0;
    color: #a4a6ad;
    font-size: 11px;
    line-height: 1.5;
}
.author-application-trigger,
.author-application-submit {
    padding: 9px 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.author-application-trigger:hover,
.author-application-submit:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.17);
    color: #6ee7b7;
}
.author-application-modal {
    box-sizing: border-box;
    width: min(500px, calc(100vw - 32px));
    padding: 28px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(13, 15, 19, 0.95);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.author-application-modal__eyebrow {
    margin: 0 0 8px;
    color: #10b981;
    font: 800 9px/1.4 monospace;
    letter-spacing: 1.5px;
}
.author-application-modal .page-title { margin: 0 0 10px; font-size: 18px; }
.author-application-modal__description {
    margin: 0 0 20px;
    color: #92949b;
    font-size: 12px;
    line-height: 1.6;
}
.author-application-form { display: flex; flex-direction: column; gap: 9px; }
.author-application-form label {
    color: #777982;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
}
.author-application-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    outline: none;
    background: rgba(0, 0, 0, 0.28);
    color: #e8e9ec;
    font: inherit;
    font-size: 12px;
}
.author-application-form textarea:focus { border-color: rgba(16, 185, 129, 0.4); }
.author-application-error { margin: 0; color: #ff8585; font-size: 11px; }
.author-application-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.author-application-cancel {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: #9a9ca3;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}
.author-application-submit:disabled { cursor: wait; opacity: 0.6; }

.coming-soon-page { display: grid; min-height: min(680px, calc(100vh - 120px)); place-items: center; }
.coming-soon-card {
    box-sizing: border-box;
    display: flex;
    width: min(760px, 100%);
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(12, 14, 18, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    text-align: center;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.coming-soon-card__eyebrow {
    margin: 0;
    color: #10b981;
    font: 800 9px/1.4 monospace;
    letter-spacing: 2px;
}
.coming-soon-card h1 {
    max-width: 620px;
    margin: 0;
    color: #e8e9ec;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.5px;
}
.coming-soon-card .btn-download { text-decoration: none; }
.support-approve-author {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}
.support-approve-author:hover:not(:disabled) {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.15);
}

@media (max-width: 560px) {
    .user-edit-reset-actions { grid-template-columns: 1fr; }
    .author-application-actions { flex-direction: column-reverse; }
    .author-application-cancel,
    .author-application-submit { width: 100%; }
}
.ban-reason-text { color: #ef4444; font-style: italic; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.mod-card { position: relative; background: rgba(20, 20, 24, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 6px; overflow: hidden; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.mod-card:hover,
.mod-card:focus-within { z-index: 2; transform: scale(1.015); border-color: rgba(16, 185, 129, 0.58); box-shadow: 0 0 20px rgba(16, 185, 129, 0.18), 0 0 5px rgba(16, 185, 129, 0.28); }
.mod-info { padding: 12px; }
.mod-title { margin: 0 0 2px 0; font-size: 13px; font-weight: 700; color: #ffffff; }
.mod-desc {
    margin: 0 0 8px;
    font-size: 11px;
    color: #3b3c42;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.mod-card__image { height: 150px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.mod-card__image img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mod-card__author { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; min-width: 0; }
.mod-card__author-label { color: #62646c; font-size: 11px; font-weight: 600; }
.mod-card__author-avatar-wrap { position: relative; display: inline-flex; width: 16px; height: 16px; flex: 0 0 16px; }
.mod-card__author-avatar { display: inline-flex; width: 16px; height: 16px; flex: 0 0 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; background: #11131a; }
.mod-card__author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mod-card__author-avatar-wrap > .presence-indicator { position: absolute; right: -3px; bottom: -3px; width: 6px; height: 6px; flex-basis: 6px; border-width: 1px; }
.mod-card__author-name { overflow: hidden; color: #fff; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.mod-card__meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 12px; color: #a4a7b0; font: 10px/1.45 monospace; }
.mod-card__meta span { color: #a4a7b0; }
.mod-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.04); }
.mod-card__date { overflow: hidden; color: rgba(190, 193, 201, 0.68); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mod-card__view { flex: 0 0 auto; padding: 5px 8px; border: 1px solid rgba(16, 185, 129, 0.12); border-radius: 4px; background: rgba(16, 185, 129, 0.025); color: #858992; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease; }
.mod-card__view:hover { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.14); }
.mod-card:hover .mod-card__view,
.mod-card:focus-within .mod-card__view,
.mod-card:hover .mod-card__view-text,
.mod-card:focus-within .mod-card__view-text {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    text-shadow: 0 0 9px rgba(16, 185, 129, 0.45);
}
.mod-card__view-text { flex: 0 0 auto; padding: 4px 5px; border: 1px solid transparent; border-radius: 4px; color: #858992; font-size: 10px; font-weight: 700; transition: color 0.2s ease, text-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; }

.favorite-toggle {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    display: inline-flex;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(9, 10, 13, 0.74);
    color: #e7e8eb;
    font: inherit;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.favorite-toggle:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(20, 21, 26, 0.92);
}

.favorite-toggle.is-favorite {
    border-color: rgba(239, 68, 68, 0.42);
    color: #ff626b;
}

.favorite-toggle__icon {
    font-size: 20px;
    line-height: 1;
}

.favorite-toggle__label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.favorite-toggle--remove {
    min-width: 0;
    height: 29px;
    padding: 0 10px;
    border-radius: 5px;
}

.favorite-toggle--remove .favorite-toggle__icon {
    font-size: 16px;
}

.favorite-toggle--modal {
    top: 21px;
    right: 22px;
}

.favorite-toggle--home {
    top: 20px;
    right: 20px;
}

.favorite-toggle--home-popular {
    top: 10px;
    right: 10px;
}

.favorite-toggle:disabled {
    cursor: wait;
    opacity: 0.65;
}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(2, 3, 5, 0.85); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 9999 !important; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-window { background-color: #06070a; border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 8px; width: 550px; padding: 24px; position: relative; }
.modal-close-btn { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #3b3c42; font-size: 14px; cursor: pointer; }
.modal-close-btn:hover { color: #ffffff; }
.mod-rating { margin: 0 0 10px; color: #a0a0a5; font-size: 11px; }
.mod-reviews { margin: 20px 0; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; background: rgba(20, 20, 24, 0.45); }
.mod-reviews > h3 { margin: 0 0 12px; color: #ffffff; font-size: 14px; }
.mod-reviews > h3 span { margin-left: 8px; color: #a0a0a5; font-size: 11px; font-weight: 500; }
.mod-reviews form { display: grid; gap: 8px; margin-bottom: 12px; }
.mod-reviews label { color: #a0a0a5; font-size: 11px; }
.mod-reviews select,
.mod-reviews textarea { box-sizing: border-box; width: 100%; padding: 9px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; background: rgba(8, 9, 12, 0.8); color: #ffffff; font: inherit; }
.mod-reviews textarea { min-height: 76px; resize: vertical; }
.mod-reviews form .btn-download { justify-self: start; padding: 8px 12px; }
.review-notice { margin: 8px 0; color: #a0a0a5; font-size: 11px; }
.review-login-button { padding: 0; border: 0; background: none; color: #10b981; font: inherit; cursor: pointer; }
.review-list { display: grid; gap: 8px; }
.review-card { padding: 10px; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 6px; background: rgba(8, 9, 12, 0.35); }
.review-card--own { margin-bottom: 8px; border-color: rgba(16, 185, 129, 0.18); }
.review-card__header { display: flex; justify-content: space-between; gap: 12px; color: #ffffff; font-size: 11px; }
.review-card__header span { color: #d6bd69; }
.review-card p { margin: 7px 0; color: #cbd5e1; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card time { color: #62646c; font-size: 10px; }
.moderation-reviews { margin-top: 16px; }

.moderation-edit-window {
    display: flex;
    box-sizing: border-box;
    width: min(1200px, calc(100vw - 40px));
    height: min(860px, 85vh);
    max-height: 85vh;
    flex-direction: column;
    overflow: hidden;
    padding: 22px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(12, 13, 17, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.moderation-edit-heading {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 5px;
    margin: 0 38px 14px 0;
    color: #a0a0a5;
    font-size: 11px;
}

.moderation-edit-heading .page-title {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.moderation-edit-heading a {
    width: fit-content;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

#moderationEditForm {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
}

.moderation-edit-layout {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.moderation-edit-media-panel,
.moderation-edit-fields-panel {
    min-width: 0;
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(20, 20, 24, 0.58);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.moderation-edit-media-panel {
    overflow: hidden;
}

.moderation-edit-fields-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}

.moderation-edit-media-panel > h3,
.moderation-edit-video > h3 {
    margin: 0 0 9px;
    color: #a0a0a5;
    font-size: 12px;
}

.moderation-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.moderation-media-item {
    position: relative;
    min-height: 60px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(8, 9, 12, 0.72);
}

.moderation-media-item img {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
}

#moderationMainImageItem {
    grid-column: 1 / -1;
}

#moderationMainImageItem img {
    height: min(27vh, 250px);
    object-fit: contain;
}

.moderation-media-grid > #moderationGalleryGrid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    margin: 0;
}

.moderation-media-grid > #moderationGalleryGrid .moderation-media-item img {
    height: 76px;
}

.moderation-additional-images {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 10px;
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 7px;
    color: #a7f3d0;
    font-size: 10px;
    cursor: pointer;
}

.moderation-additional-images input {
    width: 100%;
    color: #a0a0a5;
    font: inherit;
    font-size: 10px;
}

.moderation-media-label {
    padding: 5px 7px;
    color: #a0a0a5;
    font-size: 9px;
}

.moderation-media-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.moderation-media-item:hover .moderation-media-actions,
.moderation-media-actions:focus-within { opacity: 1; }

.moderation-media-action {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(15, 15, 18, 0.78);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.moderation-media-action:hover { background: rgba(20, 20, 24, 0.95); }
.moderation-media-action--delete { color: #ef4444; }
.moderation-media-item.is-removed { opacity: 0.4; }

.moderation-edit-video {
    margin-top: 14px;
}

.moderation-edit-video__player {
    width: 100%;
    height: min(22vh, 210px);
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #08090c;
}

.moderation-edit-video__player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.moderation-edit-video__link {
    display: block;
    margin-bottom: 8px;
    color: #a0a0a5;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.moderation-edit-fields {
    display: grid;
    flex: 0 0 auto;
    gap: 7px;
}

.moderation-edit-fields label {
    margin-top: 3px;
    color: #a0a0a5;
    font-size: 11px;
}

.moderation-edit-fields input,
.moderation-edit-fields textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    outline: none;
    background: rgba(8, 9, 12, 0.72);
    color: #fff;
    font: inherit;
    font-size: 12px;
}

.moderation-edit-fields input:focus,
.moderation-edit-fields textarea:focus { border-color: rgba(255, 255, 255, 0.2); }
.moderation-edit-fields textarea { min-height: 72px; resize: vertical; }
.moderation-reviews { flex: 0 0 auto; margin: 14px 0 10px; padding: 12px; }
.moderation-edit-actions { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 10px; }
.moderation-edit-actions .btn-download { padding: 9px 12px; font-size: 10px; }
#moderationRejectButton { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.12); color: #ef4444; }
#moderationSaveButton { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.12); color: #10b981; }

@media (max-width: 800px) {
    .moderation-edit-window {
        width: min(620px, calc(100vw - 24px));
        height: 85vh;
        padding: 16px;
    }

    .moderation-edit-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 10px;
    }

    .moderation-edit-media-panel,
    .moderation-edit-fields-panel { padding: 10px; }
    #moderationMainImageItem img { height: min(15vh, 135px); }
    .moderation-media-grid > #moderationGalleryGrid .moderation-media-item img { height: 55px; }
    .moderation-edit-video { margin-top: 8px; }
    .moderation-edit-video__player { height: min(13vh, 110px); }
    .moderation-media-actions { opacity: 1; }
    .moderation-edit-actions { flex-wrap: wrap; }
}

/* ==========================================================================
   4. УЛЬТРА-ГЛАДКАЯ ЛОКАЛЬНАЯ АНИМАЦИЯ ТОЛЬКО ДЛЯ МЕНЯЮЩЕЙСЯ ОБЛАСТИ
   ========================================================================== */
/* Сайдбар и шапка теперь стабильны, а контент плавно выезжает из прозрачности со сдвигом! */
.admin-scroll-container, .mods-grid, .users-table-wrapper {
    opacity: 0;
    animation: slideInContent 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

@keyframes slideInContent {
    0% {
        opacity: 0;
        transform: translateY(6px); /* Эффект выплывания снизу вверх */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.snowflake { will-change: transform; }

#headerAvatarBtn {
    position: relative;
    z-index: 1000000 !important; /* Картинка всегда поверх любого контента */
    pointer-events: auto !important; /* Разрешаем клики в любых условиях */
}
/* Выпадающее меню выбора игр в шапке */
.games-dropdown-wrapper {
    position: relative;
}

.games-nav-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: rgba(6, 7, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    padding: 6px;
    z-index: 9999999;
}
.games-dropdown-wrapper:hover .games-nav-dropdown,
.games-dropdown-wrapper:focus-within .games-nav-dropdown,
.games-nav-dropdown.is-open {
    display: flex;
}

.dropdown-game-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #8a8b92;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
}

.dropdown-game-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.profile-about__copy {
    min-width: 0;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-socials {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
}

.profile-socials > h2 {
    margin: 1px 0 0;
    color: #8a8b92;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.profile-socials__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-social-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.045);
    color: #c9d2d7;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.profile-social-link:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}

.profile-social-link__icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 900;
}

.profile-social-link__arrow { margin-left: auto; color: #6ee7b7; }

.profile-status-widget {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: #9da0a8;
    font-size: 11px;
}

.profile-status-widget strong { color: #e4e4e7; font-weight: 700; }
.profile-status-widget__state { display: flex; align-items: center; gap: 7px; color: #6ee7b7; font-weight: 700; }
.profile-status-widget__state i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 9px rgba(16, 185, 129, 0.7); }

.profile-message-button {
    margin-top: 5px;
    padding: 9px 12px;
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #8bd9b7;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 600px) {
    .admin-scroll-container {
        padding: 20px 14px;
    }

    .profile-author-card {
        flex-direction: column;
        gap: 20px;
        padding: 18px;
    }

    .profile-author-identity {
        flex-basis: auto;
    }

    .profile-about {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 18px;
    }

    .profile-about__copy {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .mods-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
        gap: 16px;
    }

    .ad-slot--banner {
        width: calc(100% - 28px);
        min-height: 70px;
        margin: 12px 14px;
    }
}

.mod-detail-window {
    box-sizing: border-box;
    width: min(1120px, calc(100vw - 48px));
    height: min(760px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    padding: 0;
    overflow: hidden;
    background: rgba(15, 15, 18, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mod-detail-window > .modal-close-btn {
    z-index: 2;
    top: 12px;
    right: 14px;
    color: #a0a0a5;
    font-size: 18px;
}

.mod-detail-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.mod-main-panel,
.reviews-panel {
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.mod-main-panel {
    position: relative;
    flex: 0 0 60%;
    overflow-y: auto;
    padding: 28px;
    background: rgba(20, 20, 24, 0.48);
}

.mod-detail-title {
    margin: 0 40px 12px 0;
    color: #fff;
    font-size: 22px;
}

.mod-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mod-author__label {
    color: #8a8b92;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.mod-author__identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-author__avatar {
    display: flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mod-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-author__name {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.mod-author__name:hover { color: #f0c84b; }
.mod-author__badge { padding: 2px 6px; border-radius: 4px; font-size: 8px; }

.mod-detail-media {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.mod-detail-image,
.mod-detail-video {
    flex: 1 1 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
}

.mod-detail-image { max-height: 340px; }
.mod-detail-image img { display: block; width: 100%; max-height: 340px; object-fit: contain; }
.mod-detail-video { aspect-ratio: 16 / 9; }
.mod-detail-video iframe { display: block; width: 100%; height: 100%; border: 0; }

.mod-detail-description {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(13, 14, 18, 0.42);
}

.mod-detail-description p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    user-select: text;
}

.mod-detail-gallery { margin-bottom: 18px; }
.mod-detail-gallery h3 { margin: 0 0 10px; color: #8a8b92; font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; }
.mod-detail-gallery > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.mod-detail-gallery > div > div { height: 100px !important; }
.mod-download-btn { display: block; width: 100%; padding: 12px 0; text-align: center; text-decoration: none; }
.mod-force-delete-button {
    width: 100%;
    margin-top: 9px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 76, 76, 0.65);
    border-radius: 6px;
    background: rgba(255, 76, 76, 0.12);
    color: #ff6262;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.mod-force-delete-button:hover { background: rgba(255, 76, 76, 0.22); }

.mod-title-search {
    display: flex;
    max-width: 560px;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 0 12px;
    border: 1px solid rgba(16, 185, 129, 0.17);
    border-radius: 8px;
    background: rgba(15, 17, 22, 0.72);
    color: #6ee7b7;
}
.mod-title-search > span { font-size: 20px; line-height: 1; }
.mod-title-search input {
    width: 100%;
    min-height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e4e4e7;
    font: inherit;
    font-size: 11px;
}
.mod-title-search input::placeholder { color: #686b74; }
.profile-mod-search { margin: 8px 0 14px; }
.mod-title-search__empty { margin: 0 0 12px; color: #777982; font-size: 11px; }
.mod-title-search__empty[hidden] { display: none; }
.mod-card[hidden] { display: none !important; }


.reviews-panel {
    display: flex;
    flex: 0 0 40%;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(16, 16, 20, 0.54);
}

.reviews-panel__header {
    flex: 0 0 auto;
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reviews-panel__header h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.reviews-panel__summary {
    color: #f0c84b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.reviews-panel__feed {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 18px;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}

.reviews-panel__feed .review-notice { margin: 10px 0; }
.review-list { display: grid; gap: 0; }

.reviews-panel .review-card {
    display: flex;
    gap: 10px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 0;
    background: transparent;
}

.reviews-panel .review-card--own { border-bottom-color: rgba(240, 200, 75, 0.18); }

.review-card__avatar-link {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.review-card__avatar {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #d7d9de;
    font-size: 13px;
    font-weight: 700;
    object-fit: cover;
}

.review-card__content { min-width: 0; flex: 1; }
.review-card__header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #fff; font-size: 11px; }
.review-card__identity { display: flex; min-width: 0; align-items: center; gap: 7px; }
.review-card__username { overflow: hidden; color: #e8e9ed; font-size: 11px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.review-card__username:hover { color: #fff; text-decoration: underline; }
.review-card__role { flex: 0 0 auto; padding: 2px 5px; font-size: 8px; }
.review-card__header time { flex: 0 0 auto; color: #686a72; font-size: 9px; }
.review-card__delete {
    flex: 0 0 auto;
    padding: 2px 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.08);
    color: #ff6262;
    font: inherit;
    font-size: 10px;
    line-height: 1.4;
    cursor: pointer;
}
.review-card__delete:hover { background: rgba(239, 68, 68, 0.18); }
.review-card__delete:disabled { opacity: 0.5; cursor: wait; }

.site-legal-footer {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 12px 12px;
    border: 0;
    background: rgba(20, 20, 24, 0.6);
    box-shadow: none;
    color: #666b75;
    font-size: 10px;
    animation: none !important;
    opacity: 1;
    transform: none;
    will-change: auto;
}
.site-legal-footer a { color: inherit; text-decoration: none; }
.site-legal-footer a:hover { color: #10b981; }
.site-branding__copyright { color: #777b84; }
.site-branding__version {
    position: fixed;
    right: 12px;
    bottom: 10px;
    z-index: 20;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.06);
    color: #9296a0;
    font-size: 9px;
    letter-spacing: 0.04em;
    opacity: 0.72;
    pointer-events: none;
}

.header-add-mod {
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-add-mod:hover {
    transform: scale(1.03);
    animation: add-mod-glow-pulse 1.5s ease-in-out infinite;
}
@keyframes add-mod-glow-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.34); }
    50% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.58), 0 0 8px rgba(16, 185, 129, 0.35); }
}
#headerAvatarBtn {
    transition: transform 0.2s ease, outline-color 0.2s ease, box-shadow 0.2s ease;
}
#headerAvatarBtn:hover,
#headerAvatarBtn:focus-visible {
    outline: 1px solid rgba(16, 185, 129, 0.72);
    outline-offset: 3px;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.22);
    transform: scale(1.06) rotate(2deg);
}
@media (prefers-reduced-motion: reduce) {
    .header-add-mod,
    #headerAvatarBtn,
    .mod-card { transition: none; }
    .header-add-mod:hover { animation: none; transform: none; }
    #headerAvatarBtn:hover,
    #headerAvatarBtn:focus-visible { transform: none; }
    .mod-card:hover,
    .mod-card:focus-within { transform: none; }
}

.fade-out {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
    transition: all 0.4s ease;
}

.profile-mod-edit-trigger {
    margin-top: 12px;
    padding: 8px 11px;
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 5px;
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.profile-mod-edit-trigger:hover { background: rgba(16, 185, 129, 0.16); }
.profile-mod-owner-actions { display: grid; gap: 12px; margin-top: 18px; }
.profile-mod-owner-actions[hidden],
.profile-mod-edit-form[hidden] { display: none !important; }
.profile-mod-owner-actions > .btn-download { justify-self: start; }
.profile-mod-change-notice {
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 7px;
    background: rgba(245, 158, 11, 0.05);
}
.profile-mod-change-notice[hidden] { display: none !important; }
.profile-mod-change-notice p { margin: 0 0 10px; color: #f0c77a; font-size: 11px; }
.profile-mod-edit-form {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 8px;
    background: rgba(5, 12, 10, 0.38);
}
.profile-mod-edit-form h3 { margin: 0 0 5px; color: #6ee7b7; font-size: 11px; }
.profile-mod-edit-form label,
.mod-change-request-dialog label { color: #a0a4ad; font-size: 10px; }
.profile-mod-edit-form input,
.profile-mod-edit-form textarea,
.mod-change-request-dialog textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    outline: none;
    background: rgba(5, 6, 9, 0.72);
    color: #e8e8eb;
    font: inherit;
    font-size: 11px;
}
.profile-mod-edit-form input:focus,
.profile-mod-edit-form textarea:focus,
.mod-change-request-dialog textarea:focus { border-color: rgba(16, 185, 129, 0.45); }
.profile-mod-edit-form textarea,
.mod-change-request-dialog textarea { min-height: 100px; resize: vertical; }
.profile-mod-edit-form__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.profile-mod-edit-form__actions .btn-download { font-size: 9px; }
.mod-change-request-modal { z-index: 12001 !important; }
.mod-change-request-modal[hidden] { display: none !important; }
.mod-change-request-dialog {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    padding: 28px;
    border: 1px solid rgba(16, 185, 129, 0.26);
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(16, 185, 129, 0.07), transparent 58%), rgba(13, 16, 21, 0.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 32px rgba(16, 185, 129, 0.08);
}
.mod-change-request-dialog h2 { margin: 0 28px 18px 0; color: #f2f4f6; font-size: 17px; }
.mod-change-request-dialog form { display: grid; gap: 9px; }

.legal-page {
    width: min(760px, 100%);
    margin: 20px auto 44px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(8, 9, 12, 0.48);
}
.legal-page__section { margin-top: 28px; }
.legal-page__section h2 { color: #e5e7eb; font-size: 15px; }
.legal-page__section p { color: #a0a4ad; font-size: 13px; line-height: 1.8; }

.super-admin-settings {
    max-width: 720px;
    padding: 22px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 9px;
    background: rgba(35, 10, 15, 0.24);
}
.super-admin-settings h2 { margin: 0; color: #ff7777; font-size: 14px; letter-spacing: 0.08em; }
.super-admin-settings__description { color: #9296a0; font-size: 12px; line-height: 1.6; }
.super-admin-settings__unlock { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.super-admin-settings__unlock[hidden],
.super-admin-settings__actions[hidden] { display: none !important; }
.super-admin-settings__unlock label { flex-basis: 100%; color: #c5c8ce; font-size: 11px; }
.super-admin-settings__unlock input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
    background: rgba(5, 6, 8, 0.8);
    color: #fff;
}
.super-admin-settings__unlock input:focus { border-color: rgba(239, 68, 68, 0.6); }
.super-admin-settings button {
    padding: 10px 12px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ff7777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.super-admin-settings button:hover { background: rgba(239, 68, 68, 0.18); }
.super-admin-settings button:disabled { opacity: 0.5; cursor: wait; }
.super-admin-settings__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.super-admin-settings__error { color: #ff7777; font-size: 12px; }

@media (max-width: 600px) {
    .legal-page { padding: 20px; }
    .super-admin-settings { padding: 16px; }
}
.review-card__stars { display: inline-flex; gap: 1px; color: #f0c84b; font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.review-card__content p { margin: 5px 0 0; color: #b7b9c0; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.review-composer {
    flex: 0 0 auto;
    padding: 12px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 12, 15, 0.42);
}

.review-composer form { display: grid; gap: 9px; }
.review-composer__stars { display: flex; gap: 3px; }
.review-star { padding: 0 2px; border: 0; background: none; color: #666871; font-size: 22px; line-height: 1; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.review-star:hover { color: #f0c84b; transform: translateY(-1px); }
.review-star.is-selected { color: #f0c84b; }
.review-composer textarea { box-sizing: border-box; width: 100%; min-height: 72px; max-height: 140px; padding: 11px 12px; resize: vertical; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; outline: none; background: rgba(255, 255, 255, 0.055); color: #f4f4f5; font: inherit; font-size: 11px; line-height: 1.5; }
.review-composer textarea::placeholder { color: #777982; }
.review-composer textarea:focus { border-color: rgba(240, 200, 75, 0.42); }
.review-publish-btn { justify-self: end; padding: 9px 13px; border: 1px solid rgba(240, 200, 75, 0.5); border-radius: 6px; background: rgba(240, 200, 75, 0.14); color: #f0c84b; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer; transition: background 0.15s ease, opacity 0.15s ease; }
.review-publish-btn:not(:disabled):hover { background: rgba(240, 200, 75, 0.24); }
.review-publish-btn:disabled { opacity: 0.38; cursor: not-allowed; }

.moderation-mod-search {
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin-bottom: 20px;
}

.moderation-mod-search label { color: #a0a0a5; font-size: 11px; font-weight: 700; }
.moderation-mod-search > div { display: flex; gap: 8px; }
.moderation-mod-search input { box-sizing: border-box; min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; outline: none; background: rgba(8, 9, 12, 0.72); color: #fff; font: inherit; font-size: 12px; }
.moderation-mod-search input:focus { border-color: rgba(96, 165, 250, 0.45); }
.mod-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
    gap: 12px;
}

.mod-archive-entry { display: grid; min-width: 0; align-content: start; }

.mod-archive-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(20, 20, 24, 0.58);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    animation: archiveCardIn 0.22s ease both;
}

.mod-archive-card:hover { transform: translateY(-2px); border-color: rgba(96, 165, 250, 0.32); background: rgba(25, 26, 32, 0.78); }
.mod-archive-card__image { display: flex; width: 100%; aspect-ratio: 1.15 / 1; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(0, 0, 0, 0.22); }
.mod-archive-card__image img { width: 100%; height: 100%; object-fit: cover; }
.mod-archive-card__placeholder { color: #747681; font-size: 27px; }
.mod-archive-card__title { display: -webkit-box; min-height: 32px; overflow: hidden; padding: 9px 9px 3px; color: #f0f0f2; font-size: 11px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mod-archive-card__status { align-self: flex-start; margin: 3px 9px 9px; padding: 3px 6px; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; }
.mod-archive-card__status.is-published { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.mod-archive-card__status.is-pending { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.mod-archive-card .moderation-gallery-source { display: none; }
.mod-archive-empty,
.mod-archive-error { padding: 30px 12px; color: #8a8b92; font-size: 12px; text-align: center; }
.mod-archive-error { color: #ef7777; }
.mod-archive-load-more { display: block; min-width: 160px; margin: 20px auto 0; padding: 10px 18px; cursor: pointer; }
.mod-archive-load-more[hidden],
.mod-archive-empty[hidden],
.mod-archive-error[hidden] { display: none; }
.mod-archive-load-more:disabled { opacity: 0.6; cursor: wait; }

@keyframes archiveCardIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
    .mod-detail-window {
        width: min(620px, calc(100vw - 24px));
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .mod-detail-layout { height: auto; min-height: 100%; flex-direction: column; }
    .mod-main-panel { flex: 0 0 auto; height: auto; max-height: 52vh; padding: 22px 18px; }
    .reviews-panel { flex: 1 0 340px; height: 440px; border-top: 1px solid rgba(255, 255, 255, 0.09); border-left: 0; }
    .reviews-panel__header { padding: 18px 18px 12px; }
}

@media (max-width: 600px) {
    .mod-archive-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 9px; }
}

.admin-memo {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.04);
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.admin-memo__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-memo__text { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-memo__edit,
.admin-memo__cancel,
.admin-memo__save { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 5px; background: rgba(255, 255, 255, 0.04); color: #d1d5db; font: inherit; cursor: pointer; }
.admin-memo__edit { width: 28px; height: 28px; padding: 0; font-size: 17px; }
.admin-memo__edit:hover,
.admin-memo__cancel:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.admin-memo__form { display: grid; gap: 10px; margin-top: 12px; }
.admin-memo__form[hidden] { display: none; }
.admin-memo__form textarea { box-sizing: border-box; width: 100%; min-height: 90px; padding: 10px; resize: vertical; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; outline: none; background: rgba(8, 9, 12, 0.72); color: #fff; font: inherit; font-size: 12px; }
.admin-memo__form textarea:focus { border-color: rgba(16, 185, 129, 0.45); }
.admin-memo__actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-memo__cancel,
.admin-memo__save { padding: 7px 12px; }
.admin-memo__save { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); color: #10b981; }
.admin-memo__save:hover { background: rgba(16, 185, 129, 0.18); }
.admin-memo__save:disabled { opacity: 0.6; cursor: wait; }
.admin-memo__error { margin: 10px 0 0; color: #ef7777; font-size: 11px; }
.admin-memo__error[hidden] { display: none; }

.admin-chat {
    display: flex;
    height: min(680px, calc(100vh - 300px));
    min-height: 360px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(20, 20, 24, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.admin-chat__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

.admin-chat__header h2 { margin: 0; color: #f3f4f6; font-size: 13px; letter-spacing: 0.9px; }
.admin-chat__header p { margin: 5px 0 0; color: #777982; font-size: 10px; }
.admin-chat__clear { padding: 8px 11px; border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 6px; background: rgba(239, 68, 68, 0.08); color: #ef7777; font-size: 10px; font-weight: 700; cursor: pointer; }
.admin-chat__clear:hover { background: rgba(239, 68, 68, 0.14); }
.admin-chat__clear:disabled,
.admin-chat__composer button:disabled { opacity: 0.55; cursor: wait; }

.admin-chat__messages {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    padding: 10px 20px;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}

.admin-chat__status { margin: auto; padding: 20px; color: #777982; font-size: 12px; text-align: center; }
.admin-chat-message { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.admin-chat-message__avatar-link { display: block; width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 50%; }
.admin-chat-message__avatar { display: block; width: 100%; height: 100%; object-fit: cover; background: rgba(255, 255, 255, 0.06); }
.admin-chat-message__body { min-width: 0; flex: 1; }
.admin-chat-message__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-chat-message__identity { display: flex; min-width: 0; align-items: center; gap: 7px; }
.admin-chat-message__username { overflow: hidden; color: #f1f2f4; font-size: 11px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-message__username:hover { color: #fff; text-decoration: underline; }
.admin-chat-message__role { flex: 0 0 auto; padding: 2px 5px; font-size: 8px; }
.admin-chat-message__heading time { flex: 0 0 auto; color: #696b73; font-size: 9px; }
.admin-chat-message__body p { margin: 5px 0 0; color: #c4c6cc; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-chat__composer {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(10, 10, 13, 0.4);
}

.admin-chat__composer textarea { box-sizing: border-box; min-height: 42px; max-height: 130px; flex: 1; padding: 11px 12px; resize: vertical; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; outline: none; background: rgba(255, 255, 255, 0.045); color: #f4f4f5; font: inherit; font-size: 12px; line-height: 1.5; }
.admin-chat__composer textarea::placeholder { color: #777982; }
.admin-chat__composer textarea:focus { border-color: rgba(16, 185, 129, 0.35); }
.admin-chat__composer button { min-height: 40px; padding: 0 15px; border: 1px solid rgba(16, 185, 129, 0.28); border-radius: 7px; background: rgba(16, 185, 129, 0.1); color: #10b981; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-chat__composer button:hover { background: rgba(16, 185, 129, 0.18); }
.admin-chat__error { margin: 0; padding: 0 18px 12px; color: #ef7777; font-size: 11px; }
.admin-chat__error[hidden] { display: none; }

.support-unread-badge,
.support-tab-badge {
    display: inline-flex;
    min-width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0 4px;
    border: 1px solid rgba(239, 68, 68, 0.38);
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.16);
    color: #ff7777;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.support-unread-badge[hidden] { display: none; }
.support-tab-badge { margin-left: 6px; vertical-align: middle; }

.support-page { box-sizing: border-box; width: 100%; }
.support-page__inner { width: 100%; max-width: 1000px; margin: 0 auto; padding-bottom: 40px; }
.support-page__header { margin-bottom: 22px; }
.support-page__eyebrow { margin: 0 0 8px; color: #10b981; font: 800 9px monospace; letter-spacing: 1.5px; }
.support-user-chat {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(20, 20, 24, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.support-user-chat--create {
    box-sizing: border-box;
    width: min(640px, 100%);
    min-height: 0;
    margin: 0 auto;
}
.support-user-chat--create .support-create-form { padding: 24px; }
.support-user-status { margin: auto; padding: 24px; color: #777982; font-size: 12px; text-align: center; }
.support-user-status--error { color: #ef7777; }
.support-create-form { display: grid; gap: 12px; padding: 22px; }
.support-create-form[hidden],
.support-conversation[hidden],
.support-composer[hidden] { display: none; }
.support-create-form label { color: #a0a0a5; font-size: 11px; font-weight: 700; }
.support-create-form textarea,
.support-composer textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 90px;
    max-height: 180px;
    padding: 12px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    outline: none;
    background: rgba(8, 9, 12, 0.72);
    color: #f4f4f5;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}
.support-create-form textarea:focus,
.support-composer textarea:focus { border-color: rgba(16, 185, 129, 0.4); }
.support-create-form > .btn-download { justify-self: end; padding: 11px 16px; }
.support-create-form button:disabled,
.support-composer button:disabled { opacity: 0.55; cursor: wait; }
.support-conversation { display: flex; min-height: 420px; flex: 1; flex-direction: column; }
.support-conversation__header,
.moderation-support-chat__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}
.support-conversation__header h2,
.support-ticket-list-header h2 { margin: 0; color: #f3f4f6; font-size: 11px; letter-spacing: 0.7px; }
.support-conversation__header p,
.support-ticket-list-header p { margin: 5px 0 0; color: #777982; font-size: 10px; }
.support-ticket-status { padding: 4px 7px; border: 1px solid rgba(16, 185, 129, 0.22); border-radius: 4px; background: rgba(16, 185, 129, 0.07); color: #10b981; font: 800 8px monospace; }
.support-ticket-status--closed { border-color: rgba(255, 76, 76, 0.24); background: rgba(255, 76, 76, 0.08); color: #ff7777; }
.support-messages {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px 18px;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}
.support-message { width: fit-content; max-width: min(78%, 680px); padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 9px; background: rgba(255, 255, 255, 0.035); }
.support-message--user { align-self: flex-start; }
.support-message--staff { align-self: flex-end; border-color: rgba(16, 185, 129, 0.16); background: rgba(16, 185, 129, 0.055); }
.support-message header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.support-message header strong { color: #c9cbd1; font-size: 9px; letter-spacing: 0.45px; }
.support-message--staff header strong { color: #10b981; }
.support-message time { color: #696b73; font-size: 9px; white-space: nowrap; }
.support-message p { margin: 6px 0 0; color: #c4c6cc; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-composer { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(10, 10, 13, 0.4); }
.support-composer textarea { min-height: 42px; max-height: 120px; flex: 1; }
.support-composer button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(16, 185, 129, 0.28); border-radius: 7px; background: rgba(16, 185, 129, 0.1); color: #10b981; font-size: 9px; font-weight: 800; cursor: pointer; }
.support-composer button:hover { background: rgba(16, 185, 129, 0.18); }
.support-composer textarea:disabled { border-color: rgba(255, 255, 255, 0.06); color: #777982; cursor: not-allowed; }
.support-composer button:disabled { cursor: not-allowed; }
.support-new-ticket {
    align-self: flex-end;
    margin: 0 16px 14px;
    padding: 10px 13px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.09);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}
.support-new-ticket[hidden] { display: none; }
.support-error { margin: 0; padding: 0 16px 12px; color: #ef7777; font-size: 11px; }

.profile-dropdown {
    position: fixed;
    top: 48px;
    right: 24px;
    z-index: 99999999;
    display: flex;
    width: 220px;
    flex-direction: column;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    background: rgba(13, 14, 18, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.profile-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.profile-dropdown { pointer-events: none; }
.profile-dropdown.is-open { pointer-events: auto; }
.header-avatar:focus-visible { outline: 2px solid #10b981; outline-offset: 3px; }

.home-eyebrow,
.home-page .home-eyebrow,
.create-page__eyebrow,
.support-page__eyebrow,
.coming-soon-card__eyebrow,
.verify-email-brand,
.author-application-modal__eyebrow {
    color: #10b981;
}

textarea {
    max-height: 150px !important;
    resize: none !important;
}
.support-error[hidden] { display: none; }

.moderation-support {
    display: flex;
    height: 70vh;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(20, 20, 24, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.support-ticket-list-panel { display: flex; width: 30%; min-width: 230px; flex: 0 0 30%; flex-direction: column; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, 0.07); }
.support-ticket-list-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.support-ticket-list-header h2 { font-size: 9px; }
.support-ticket-list-header button { width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 5px; background: rgba(255, 255, 255, 0.035); color: #a0a0a5; font-size: 17px; cursor: pointer; }
.support-ticket-list { min-height: 0; flex: 1; overflow-y: auto; }
.support-ticket-list .support-user-status { padding: 18px 12px; font-size: 10px; }
.support-ticket-item { position: relative; display: flex; width: 100%; align-items: center; gap: 9px; padding: 11px 10px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.035); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.support-ticket-item:hover,
.support-ticket-item.is-active { background: rgba(255, 255, 255, 0.045); }
.support-ticket-item.has-unread { box-shadow: inset 2px 0 rgba(239, 68, 68, 0.8); }
.support-ticket-item__avatar { width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; object-fit: cover; background: #11131a; }
.support-ticket-item__info { display: block; min-width: 0; flex: 1; }
.support-ticket-item__heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.support-ticket-item__heading strong { overflow: hidden; color: #e6e7ea; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-item__heading time { flex: 0 0 auto; color: #696b73; font-size: 8px; }
.support-ticket-item__preview { display: block; overflow: hidden; margin-top: 5px; color: #81838b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-item__unread { min-width: 17px; padding: 3px 4px; border-radius: 999px; background: rgba(239, 68, 68, 0.16); color: #ff7777; font-size: 8px; font-weight: 800; text-align: center; }
.moderation-support-chat { display: flex; width: 70%; min-width: 0; flex: 1 1 70%; flex-direction: column; }
.support-ticket-user { display: flex; min-width: 0; align-items: center; gap: 10px; }
.support-ticket-user img { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; object-fit: cover; background: #11131a; }
.support-ticket-user a { color: #f3f4f6; font-size: 11px; font-weight: 700; text-decoration: none; }
.support-ticket-user a:hover { text-decoration: underline; }
.support-ticket-user p { margin: 4px 0 0; color: #777982; font-size: 9px; }
.support-close-ticket { padding: 8px 10px; border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 6px; background: rgba(239, 68, 68, 0.07); color: #ef7777; font-size: 8px; font-weight: 800; cursor: pointer; }
.support-close-ticket:disabled { opacity: 0.4; cursor: not-allowed; }
.moderation-ticket-messages { padding: 14px; }
.moderation-support-chat .support-composer[hidden] { display: none; }

@media (max-width: 600px) {
    .admin-chat { height: calc(100vh - 280px); min-height: 320px; }
    .admin-chat__header { padding: 14px; }
    .admin-chat__messages { padding: 8px 14px; }
    .admin-chat__composer { gap: 7px; padding: 10px; }
    .admin-chat__composer button { padding: 0 10px; }
    .moderation-support { height: 72vh; min-height: 390px; }
    .support-ticket-list-panel { width: 38%; min-width: 125px; flex-basis: 38%; }
    .support-ticket-list-header { padding: 10px 8px; }
    .support-ticket-list-header h2 { max-width: 90px; line-height: 1.4; }
    .support-ticket-item { gap: 6px; padding: 9px 7px; }
    .support-ticket-item__avatar { width: 27px; height: 27px; flex-basis: 27px; }
    .support-ticket-item__heading time { display: none; }
    .moderation-support-chat__header { gap: 8px; padding: 10px; }
    .support-close-ticket { padding: 7px; font-size: 7px; }
    .support-message { max-width: 90%; }
    .support-composer { gap: 7px; padding: 9px; }
    .support-composer button { padding: 0 9px; font-size: 8px; }
    .support-create-form { padding: 14px; }
}

.header-help-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-color: transparent;
    background: transparent;
    color: #777982;
    text-decoration: none;
}

.header-help-link:hover,
.header-help-link.is-active {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
}

.header-help-link .support-unread-badge {
    min-width: 16px;
    height: 16px;
    margin: -7px -9px -7px 0;
    font-size: 8px;
}

.header-help-link .support-unread-badge[hidden] { display: none; }

.home-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    padding: 16px 32px;
}

.home-page .home-dashboard {
    flex: 0 0 auto;
    gap: 10px;
    padding: 0 0 2px;
}

.home-page .home-dashboard__heading .page-title { font-size: 15px; }
.home-page .home-eyebrow { margin-bottom: 4px; font-size: 8px; }
.home-page .home-dashboard__heading p { font-size: 10px; }
.home-page .home-stats { gap: 12px; }
.home-page .home-stat-card { min-height: 82px; gap: 7px; padding: 13px 17px; border-radius: 8px; }
.home-page .home-stat-card__value { font-size: clamp(26px, 3.2vw, 36px); }
.home-page .home-stat-card__label { font-size: 9px; }

.home-page .home-discovery {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-page .home-feature-layout {
    min-height: 250px;
    max-height: min(390px, 42vh);
    flex: 1 1 auto;
    gap: 14px;
}

.home-page .home-featured-card { min-height: 0; padding: 22px; }
.home-page .home-featured-card h2 { margin: 7px 0 5px; font-size: clamp(22px, 2.5vw, 34px); }
.home-page .home-featured-card p { margin-bottom: 12px; }
.home-page .home-topic-stack { min-width: 230px; gap: 8px; }
.home-page .home-topic-card { min-height: 70px; gap: 10px; padding: 11px 13px; }
.home-page .home-topic-card h2 { margin-top: 4px; }
.home-page .home-popular { flex: 0 0 auto; margin-top: 10px; }
.home-page .home-popular__heading { margin-bottom: 8px; }
.home-page .home-popular__heading h2 { font-size: 12px; }
.home-page .home-popular__rail { gap: 10px; padding-bottom: 4px; }
.home-page .home-popular-card { width: 150px; height: 154px; flex-basis: 150px; }
.home-page .home-popular-card > img,
.home-page .home-popular-card__placeholder { height: 108px; flex-basis: 108px; }
.home-page .home-popular-card__title { padding-top: 7px; font-size: 10px; }

textarea {
    box-sizing: border-box;
    min-height: 0 !important;
    max-height: 150px !important;
    overflow-y: hidden;
    resize: none !important;
}

.app-toast {
    position: fixed;
    z-index: 10000010;
    right: 24px;
    bottom: 24px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 17px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: rgba(20, 20, 24, 0.88);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    color: #e8e9ec;
    font-size: 12px;
    line-height: 1.45;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.is-visible { opacity: 1; transform: translateY(0); }
.app-toast--success { border-color: rgba(16, 185, 129, 0.28); }
.app-toast--error { border-color: rgba(239, 68, 68, 0.34); color: #ff9999; }

.app-confirm-overlay {
    position: fixed;
    z-index: 10000020;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 3, 5, 0.64);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.app-confirm-overlay[hidden] { display: none; }
.app-confirm { box-sizing: border-box; width: min(400px, 100%); padding: 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: rgba(20, 20, 24, 0.92); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); }
.app-confirm__message { margin: 0; color: #e8e9ec; font-size: 13px; line-height: 1.55; }
.app-confirm__actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.app-confirm__button { padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: #b7b9c0; font-size: 9px; font-weight: 800; cursor: pointer; }
.app-confirm__button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.app-confirm__button--accept { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); color: #10b981; }
.app-confirm__button--accept:hover { background: rgba(16, 185, 129, 0.18); }

.account-verification-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 8px;
    background: rgba(73, 57, 14, 0.28);
    color: #e7d89a;
    font-size: 12px;
    line-height: 1.5;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.account-verification-notice strong { color: #fde68a; }
.account-verification-notice a {
    margin-left: auto;
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-decoration: none;
}
.account-verification-notice a:hover { color: #fff1a8; }

.verify-email-page {
    display: grid;
    min-height: min(680px, calc(100vh - 120px));
    place-items: center;
}
.verify-email-card {
    box-sizing: border-box;
    width: min(480px, 100%);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(12, 14, 18, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.verify-email-brand {
    margin-bottom: 16px;
    color: #10b981;
    font: 800 9px/1.4 monospace;
    letter-spacing: 2px;
}
.verify-email-card .page-title {
    margin: 0 0 10px;
    font-size: 18px;
}
.verify-email-description {
    margin: 0 0 22px;
    color: #92949b;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.verify-email-description strong { color: #d7d8dc; }
.verify-email-message {
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.5;
}
.verify-email-message--error {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(90, 20, 25, 0.25);
    color: #ff9a9a;
}
.verify-email-message--success {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 100, 70, 0.16);
    color: #6ee7b7;
}
.verify-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.verify-email-form label {
    color: #71737b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}
.verify-email-form input {
    box-sizing: border-box;
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    outline: none;
    background: rgba(0, 0, 0, 0.32);
    color: #f4f4f5;
    font: 700 24px/1.2 monospace;
    letter-spacing: 12px;
    text-align: center;
}
.verify-email-form input:focus { border-color: rgba(16, 185, 129, 0.5); }
.verify-email-form input::placeholder { color: #393b42; }
.verify-email-form span { color: #555860; font-size: 10px; }
.verify-email-submit {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.verify-email-resend { margin-top: 14px; text-align: center; }
.verify-email-resend button {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #72747c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
}
.verify-email-resend button:hover { color: #d4d4d8; }

@media (max-width: 760px) {
    .home-page { overflow-y: auto; padding: 16px 14px 26px; }
    .home-page .home-feature-layout { max-height: none; }
}

.profile-author-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.profile-about { grid-column: 1 / -1; }
.profile-author-application { box-sizing: border-box; grid-column: 2; grid-row: 1; width: min(290px, 100%); margin: 0; padding: 11px 13px; gap: 8px; }
.profile-author-application p { font-size: 10px; }
.profile-author-application .author-application-trigger { padding: 7px 10px; font-size: 9px; }
.profile-author-avatar-wrap > .presence-indicator { right: auto; bottom: 4px; left: 3px; }

.admin-scroll-container.direct-messages-page {
    display: flex;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
}

.admin-scroll-container.direct-messages-page .direct-messages-layout {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
}

.admin-scroll-container.direct-messages-page .direct-chat,
.admin-scroll-container.direct-messages-page .direct-conversations {
    min-height: 0;
    overflow: hidden;
}

.admin-scroll-container.direct-messages-page .direct-chat__messages {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 760px) {
    .profile-author-card { grid-template-columns: minmax(0, 1fr); }
    .profile-author-application { grid-column: 1; grid-row: auto; justify-self: start; }
    .admin-scroll-container.direct-messages-page .direct-messages-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(90px, 190px) minmax(0, 1fr);
    }
    .admin-scroll-container.direct-messages-page .direct-conversations {
        max-height: 190px;
        flex: 0 0 auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 520px) {
    .authors-list__head { display: none; }
    .author-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 12px;
    }
    .author-row__identity { grid-column: 1; }
    .author-row__id { grid-column: 2; grid-row: 1; }
    .author-row > .author-role { grid-column: 1; justify-self: start; }
    .author-row__status { grid-column: 2; grid-row: 2; justify-self: end; }
}

.mobile-header-logo,
.mobile-bottom-nav {
    display: none;
}

.home-stat-card__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: rgba(16, 185, 129, 0.62);
}

.home-stat-card__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.profile-publications-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-add-mod-button {
    display: none;
    text-decoration: none;
}

.mod-info .mod-archive-card__status {
    display: inline-flex;
    margin: 4px 0 8px;
}

@media (max-width: 768px) {
    html,
    body {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body {
        display: block;
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .launcher-layout {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .sidebar {
        display: none !important;
    }

    .main-content,
    .is-messages-page .main-content {
        display: flex;
        width: 100%;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .admin-scroll-container,
    .admin-scroll-container.create-page,
    .admin-scroll-container.settings-page,
    .is-moderation-page .admin-scroll-container,
    .admin-scroll-container.direct-messages-page {
        box-sizing: border-box;
        width: 100%;
        height: auto !important;
        min-height: 0;
        max-height: none;
        flex: 0 0 auto;
        overflow: visible !important;
        overscroll-behavior: auto;
        padding: 18px 14px 26px;
    }

    body.is-messages-page {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .admin-scroll-container.direct-messages-page {
        display: block;
    }

    .admin-scroll-container.direct-messages-page .direct-messages-layout {
        display: grid;
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(90px, 190px) minmax(420px, 65vh);
    }

    .admin-scroll-container.direct-messages-page .direct-conversations {
        max-height: 190px;
        overflow-y: auto;
    }

    .admin-scroll-container.direct-messages-page .direct-chat {
        min-height: 420px;
        overflow: hidden;
    }

    .admin-scroll-container.direct-messages-page .direct-chat__messages {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header {
        position: relative;
        z-index: 20;
        width: 100%;
        min-height: 56px;
        padding: 0 14px;
    }

    .header > div:first-child {
        gap: 0 !important;
    }

    .mobile-header-logo {
        display: inline-flex;
        align-items: center;
        color: #f3f4f6;
        font-size: 15px;
        font-weight: 900;
        letter-spacing: 1.8px;
        text-decoration: none;
    }

    .games-dropdown-wrapper,
    .header-help-link,
    .header-add-mod {
        display: none !important;
    }

    .header > div:last-child {
        gap: 0 !important;
    }

    .site-legal-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 9px 16px;
        padding: 14px 18px 22px;
        text-align: center;
    }

    .site-branding__version {
        right: 9px;
        bottom: calc(65px + env(safe-area-inset-bottom) + 8px);
        font-size: 8px;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 9999;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        box-sizing: border-box;
        width: 100%;
        height: calc(65px + env(safe-area-inset-bottom));
        align-items: center;
        justify-content: space-around;
        padding: 0 8px env(safe-area-inset-bottom);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(15, 15, 15, 0.75);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }

    .mobile-bottom-nav__item {
        position: relative;
        display: inline-flex;
        width: 48px;
        height: 48px;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: #858992;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }

    .mobile-bottom-nav__item svg {
        box-sizing: border-box;
        width: 23px;
        height: 23px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.075);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.025);
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
        transition: color 0.18s ease, filter 0.18s ease, transform 0.18s ease;
    }

    .mobile-bottom-nav__item.is-active {
        color: #10b981;
    }

    .mobile-bottom-nav__item.is-active svg {
        border-color: rgba(16, 185, 129, 0.38);
        background: rgba(16, 185, 129, 0.08);
        filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.58));
    }

    .mobile-bottom-nav__item--create {
        width: 48px;
        height: 48px;
        flex: 1 1 0;
        color: #b7f5d6;
    }

    .mobile-bottom-nav__item--create svg {
        box-sizing: border-box;
        width: 46px;
        height: 46px;
        padding: 11px;
        border: 1px solid rgba(16, 185, 129, 0.48);
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.12);
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
        stroke: #10b981;
        stroke-width: 2;
    }

    .mobile-bottom-nav__item:active svg {
        transform: scale(0.92);
    }

    .home-page {
        width: 100%;
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
        padding: 16px 14px 26px;
    }

    .home-page .home-dashboard {
        width: 100%;
        gap: 14px;
        padding-bottom: 4px;
    }

    .home-page .home-dashboard__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .home-page .home-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .home-page .home-stat-card {
        display: grid;
        min-height: 72px;
        grid-template-columns: 30px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 3px 12px;
        padding: 11px 14px;
        border-radius: 9px;
    }

    .home-page .home-stat-card__icon {
        width: 24px;
        height: 24px;
        grid-row: 1 / 3;
        color: rgba(190, 195, 205, 0.55);
    }

    .home-page .home-stat-card__value {
        font-size: 25px;
        line-height: 1;
    }

    .home-page .home-stat-card__label {
        font-size: 8px;
        line-height: 1.25;
    }

    .home-page .home-feature-layout {
        min-height: 0;
        max-height: none;
        flex-direction: column;
        gap: 12px;
    }

    .home-page .home-featured-card {
        min-height: 230px;
        flex: auto;
        padding: 18px;
    }

    .home-page .home-featured-card__content {
        max-width: 100%;
    }

    .home-page .home-topic-stack {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .home-page .home-popular {
        margin-top: 18px;
    }

    .home-page .home-popular__rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding: 2px 0 8px;
    }

    .home-page .home-popular-card {
        width: auto;
        min-width: 0;
        height: auto;
        min-height: 0;
        flex: initial;
    }

    .home-page .home-popular-card > img,
    .home-page .home-popular-card__placeholder {
        height: auto;
        aspect-ratio: 1.25 / 1;
        flex: 0 0 auto;
    }

    .home-page .home-popular-card__title {
        min-height: 38px;
        padding: 8px 9px;
        font-size: 10px;
    }

    .profile-page {
        width: 100%;
        max-width: 100%;
    }

    .profile-author-card {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .profile-author-identity {
        width: 100%;
        flex: 0 1 auto;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .profile-author-avatar-wrap {
        flex: 0 0 84px;
        width: 84px;
        height: 84px;
    }

    .profile-author-details {
        align-items: center;
        gap: 7px;
    }

    .profile-author-name {
        font-size: 18px;
    }

    .profile-about {
        width: 100%;
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .profile-about__copy {
        padding-right: 0;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .profile-socials {
        min-width: 0;
    }

    .profile-author-application {
        width: 100%;
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        padding: 13px;
    }

    .profile-author-application .author-application-trigger,
    .profile-add-mod-button {
        box-sizing: border-box;
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(16, 185, 129, 0.24);
        border-radius: 6px;
        background: rgba(16, 185, 129, 0.07);
        color: #9de8c4;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.6px;
        text-decoration: none;
    }

    .profile-publications-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin: 20px 0 12px;
    }

    .profile-publications-title {
        margin: 0;
    }

    .profile-mod-search {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 12px;
    }

    .mods-grid,
    .is-moderation-page .mods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mods-grid > * {
        min-width: 0;
    }

    .mod-card {
        min-width: 0;
        border-radius: 8px;
    }

    .mod-card__image {
        height: auto;
        aspect-ratio: 1.2 / 1;
    }

    .mod-info {
        padding: 9px;
    }

    .mod-title {
        font-size: 11px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .mod-desc {
        margin-bottom: 6px;
        font-size: 9px;
        -webkit-line-clamp: 2;
    }

    .mod-card__author {
        gap: 5px;
        margin: 4px 0 8px;
    }

    .mod-card__author-label {
        font-size: 9px;
    }

    .mod-card__author-name {
        font-size: 10px;
    }

    .mod-card__meta {
        gap: 4px 7px;
        margin-bottom: 8px;
        font-size: 8px;
    }

    .mod-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .mod-card__date {
        max-width: 100%;
        font-size: 8px;
    }

    .mod-card__view,
    .mod-card__view-text {
        font-size: 8px;
    }

    .mod-tabs-container {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-bottom: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        white-space: nowrap;
    }

    .mod-tabs-container::-webkit-scrollbar {
        display: none;
    }

    .mod-tab-btn {
        flex: 0 0 auto;
        padding: 8px 12px;
    }

    .mod-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .mod-archive-card__status {
        max-width: calc(100% - 18px);
        font-size: 7px;
        line-height: 1.25;
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .home-page .home-popular__rail {
        gap: 8px;
    }

    .mods-grid,
    .is-moderation-page .mods-grid,
    .mod-archive-grid {
        gap: 7px;
    }

    .mod-info {
        padding: 8px;
    }
}

.delete-mod-confirm-modal {
    background: rgba(2, 3, 5, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.delete-mod-confirm-dialog {
    box-sizing: border-box;
    width: min(440px, calc(100vw - 32px));
    padding: 28px;
    border: 1px solid rgba(255, 76, 76, 0.42);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 76, 76, 0.075), transparent 58%),
        rgba(13, 14, 18, 0.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72), 0 0 30px rgba(255, 76, 76, 0.1);
    transform: translateY(8px) scale(0.985);
    transition: transform 0.2s ease;
}

.delete-mod-confirm-modal.active .delete-mod-confirm-dialog {
    transform: translateY(0) scale(1);
}

.delete-mod-confirm-dialog h2 {
    margin: 0 0 12px;
    color: #ff7777;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.delete-mod-confirm-dialog p {
    margin: 0;
    color: #f3f4f6;
    font-size: 14px;
    line-height: 1.6;
}

.delete-mod-confirm-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.delete-mod-confirm-dialog__actions button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 6px;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.45px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.delete-mod-confirm-dialog__cancel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    color: #b6b8bf;
}

.delete-mod-confirm-dialog__cancel:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.delete-mod-confirm-dialog__confirm {
    border: 1px solid rgba(255, 76, 76, 0.7);
    background: rgba(255, 55, 55, 0.16);
    color: #ff7777;
    box-shadow: 0 0 13px rgba(255, 55, 55, 0.12);
}

.delete-mod-confirm-dialog__confirm:hover {
    border-color: #ff6262;
    background: rgba(255, 55, 55, 0.27);
    color: #fff;
    box-shadow: 0 0 19px rgba(255, 55, 55, 0.23);
}

.delete-mod-confirm-dialog__actions button:focus-visible {
    outline: 2px solid rgba(255, 100, 100, 0.75);
    outline-offset: 3px;
}

.delete-mod-confirm-dialog__actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 480px) {
    .delete-mod-confirm-dialog {
        padding: 22px;
    }

    .delete-mod-confirm-dialog__actions {
        flex-direction: column-reverse;
    }

    .delete-mod-confirm-dialog__actions button {
        width: 100%;
    }
}
