/* site.css — собственные стили сайта лаунчера поверх темы.
   Используются CSS-переменные темы из main.css (--color-accent и т.д.). */

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

body {
    margin: 0;
    font-family: var(--font-3, "Intro Book", Arial, sans-serif);
    color: rgb(var(--color-light, 232, 209, 166));
    background: rgb(var(--body-background-color, 15, 14, 13));
    min-height: 100vh;
}

a { color: rgb(var(--color-url, 218, 170, 86)); text-decoration: none; }
a:hover { color: rgb(var(--color-url-hover, 255, 255, 0)); }

/* Кнопки .btn на лендинге стилизует сама тема (main.css, с фоновыми
   картинками). Здесь их НЕ переопределяем. Для собственных страниц
   (авторизация, ошибки) используется .ui-btn ниже. */

/* --- Собственные кнопки --- */
.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 16px;
    font-family: var(--font-2, "intro", sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    color: #1a140a;
    background: #d5ac60;
    border: 1px solid #d5ac60;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    transition: filter .2s ease, background-color .2s ease, border-color .2s ease;
}
.ui-btn:hover { filter: brightness(1.08); color: #1a140a; }
.ui-btn:active { filter: brightness(.96); }
.ui-btn_ghost {
    color: rgb(var(--color-accent, 218, 170, 86));
    background: transparent;
    border-color: rgba(var(--color-accent, 218, 170, 86), .5);
    box-shadow: none;
}
.ui-btn_ghost:hover { background: rgba(var(--color-accent, 218, 170, 86), .12); color: rgb(var(--color-accent, 218, 170, 86)); }
.ui-btn:disabled { opacity: .5; cursor: default; filter: none; }
.ui-btn:focus-visible { outline: 2px solid rgb(var(--color-accent, 218, 170, 86)); outline-offset: 3px; }

/* --- Шапка --- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(var(--color-accent, 218, 170, 86), .25);
}
.site-header__inner {
    max-width: 1200px; margin: 0 auto; padding: 0.6rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo img { height: 46px; display: block; }
.site-nav a {
    margin-left: 1.6rem; font-family: var(--font-2, "intro", sans-serif);
    text-transform: uppercase; font-size: .85rem; letter-spacing: .08em;
}

/* --- Hero --- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(.55);
}
.hero__content { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hero__title {
    font-family: var(--font-1, "Trajan Pro 3", serif);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    margin: 0 0 .5rem;
    color: rgb(var(--color-accent, 218, 170, 86));
    text-shadow: 0 4px 24px rgba(0, 0, 0, .8);
}
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.4rem); margin: 0 0 2rem; opacity: .9; }

/* --- Секции --- */
.section-head { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.section-head h2, .download h2 {
    font-family: var(--font-1, "Trajan Pro 3", serif);
    color: rgb(var(--color-accent, 218, 170, 86));
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0;
}

/* --- Новости --- */
.news__grid {
    max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 3rem;
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.news-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .2);
    border-radius: 4px; padding: 1.4rem;
    transition: border-color .2s ease, transform .2s ease;
}
.news-card:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .6); transform: translateY(-3px); }
.news-card__date { font-size: .8rem; opacity: .6; }
.news-card__title {
    font-family: var(--font-2, "intro", sans-serif);
    margin: .4rem 0 .8rem; color: rgb(var(--color-light, 232, 209, 166));
}
.news-card__body { margin: 0; line-height: 1.6; opacity: .85; }

/* --- Скачать --- */
.downloads__btns.downloads__btns_launcher {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .5rem;
}
.installer-download-button.bt {
    width: min(17rem, 100%);
    padding-inline: .875rem;
}
.installer-download-button:focus-visible,
.installer-option:focus-visible { outline: 2px solid #e8d1a6; outline-offset: 3px; }
.ui-modal__dialog:has(.installer-options) { max-width: 30rem; }
.installer-options { display: grid; gap: .625rem; padding: 3px; }
.installer-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    min-height: 48px;
    border: 1px solid rgba(218, 170, 86, .35);
    border-radius: 8px;
    background: rgba(218, 170, 86, .08);
    color: #f4e4cb;
    text-decoration: none;
    font-family: var(--font-2, Arial, sans-serif);
}
a.installer-option:hover { border-color: #daaa56; background: rgba(218, 170, 86, .17); }
.installer-option__icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.installer-option[aria-disabled="true"] { opacity: .6; }
.installer-option__status { margin-inline-start: auto; text-align: end; }
.download { padding: 4rem 1.5rem; text-align: center; background: rgba(0, 0, 0, .3); }
.download__inner { max-width: 700px; margin: 0 auto; }
.download p { margin: 1rem 0 2rem; opacity: .85; }

/* --- Подвал --- */
.site-footer { padding: 2rem 1.5rem; border-top: 1px solid rgba(var(--color-accent, 218, 170, 86), .2); }
.site-footer__inner {
    max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem;
    justify-content: center; opacity: .7; font-size: .9rem;
}
.site-footer__logo { height: 34px; }

/* --- Страница ошибки (404/500/…) — переливающийся блок --- */
.body_error { display: block; overflow-x: hidden; }
.err-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60vw 60vw at 20% 15%, rgba(var(--color-accent, 218,170,86), .16), transparent 60%),
        radial-gradient(55vw 55vw at 85% 85%, rgba(120, 90, 220, .16), transparent 60%),
        #0c0b0a;
    background-size: 140% 140%, 140% 140%, auto;
    animation: errBgShift 18s ease-in-out infinite alternate;
}
@keyframes errBgShift {
    0%   { background-position: 0% 0%, 100% 100%, 0 0; }
    100% { background-position: 100% 50%, 0% 40%, 0 0; }
}
.err-wrap {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem; box-sizing: border-box;
}
.err-card {
    position: relative; width: 100%; max-width: 520px; text-align: center;
    padding: 2.6rem 2rem 2.4rem; border-radius: 18px;
    background: linear-gradient(160deg, rgba(28,23,17,.92), rgba(16,14,12,.92));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .28);
    box-shadow: 0 20px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
    overflow: hidden;
    animation: errFloat 6s ease-in-out infinite;
}
/* Переливающаяся рамка-обводка */
.err-card::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
    background: linear-gradient(120deg,
        rgba(var(--color-accent, 218,170,86), .0) 0%,
        rgba(var(--color-accent, 218,170,86), .9) 25%,
        rgba(255,255,255,.85) 45%,
        rgba(140, 110, 230, .9) 65%,
        rgba(var(--color-accent, 218,170,86), .0) 100%);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: errBorder 4s linear infinite;
}
@keyframes errBorder { to { background-position: -300% 0; } }
@keyframes errFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.err-logo img { height: 44px; margin: 0 auto .4rem; display: block; opacity: .9; }
.err-code {
    position: relative; font-family: var(--font-1, "Trajan Pro 3", serif);
    font-size: clamp(4.5rem, 16vw, 8.5rem); line-height: 1; margin: .2rem 0 .3rem; font-weight: 700;
    background: linear-gradient(100deg, #f5d98a 0%, #daaa56 20%, #fff 45%, #b98bff 70%, #daaa56 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: errShine 5s linear infinite;
    filter: drop-shadow(0 6px 26px rgba(var(--color-accent, 218,170,86), .35));
}
@keyframes errShine { to { background-position: 250% 0; } }
.err-title {
    font-family: var(--font-1, "Trajan Pro 3", serif); font-size: 1.35rem;
    margin: 0 0 .5rem; color: #f0e2c4; text-transform: uppercase; letter-spacing: .04em;
}
.err-message { opacity: .8; margin: 0 0 1.6rem; line-height: 1.5; white-space: pre-line; }
.err-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
    .err-bg, .err-card, .err-card::before, .err-code { animation: none; }
}

/* --- Страницы авторизации (layout plain) --- */
.body_plain { display: block; }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 2rem 1rem; }
.auth-page__logo img { height: 54px; }
.auth-card {
    width: 100%; max-width: 400px; padding: 2rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .25);
    border-radius: 6px;
}
.auth-card__title {
    margin: 0 0 1.4rem; font-family: var(--font-1, "Trajan Pro 3", serif);
    color: rgb(var(--color-accent, 218, 170, 86)); font-size: 1.6rem; text-align: center;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; }
.auth-field span { opacity: .8; }
.auth-field input, .auth-field select {
    padding: .7rem .9rem; border-radius: 3px; border: 1px solid rgba(var(--color-accent, 218, 170, 86), .3);
    background: rgba(0, 0, 0, .35); color: rgb(var(--color-light, 232, 209, 166)); font-size: 1rem;
}
.auth-field input:focus, .auth-field select:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); }
.auth-field select { width: 100%; min-height: 44px; color-scheme: dark; cursor: pointer; }
.auth-field select option { background: #191713; color: rgb(var(--color-light, 232, 209, 166)); }
.auth-field input[type="file"] { width: 100%; min-width: 0; font-size: .85rem; }
.auth-field input[type="file"]::file-selector-button { margin-right: .8rem; padding: .4rem .7rem; border: 1px solid rgba(var(--color-accent, 218, 170, 86), .4); background: rgba(var(--color-accent, 218, 170, 86), .12); color: inherit; cursor: pointer; }
.dnt [data-donate-form] { display: grid; gap: .8rem; }
.dnt [data-donate-form][hidden] { display: none; }
.dnt-description { margin: 0 0 .2rem; color: #b6a488; font-size: 12px; line-height: 1.55; }
.dnt .auth-field { font-size: 13px; }
.dnt .auth-field input:not([type="file"]), .dnt .auth-field select { min-height: 44px; font-size: 14px; }
.dnt .dnt-hint, .dnt .auth-check { font-size: 12px; }
.dnt-server { position: relative; min-width: 0; }
.dnt-server select[hidden] { display: none; }
.dnt-server__toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #625038; border-radius: 3px; background: #211d18; color: #ead8b9; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.dnt-server__toggle:hover { border-color: #b38d51; background: #28221b; }
.dnt-server__toggle:focus-visible { outline: 2px solid #daaa56; outline-offset: 2px; }
.dnt-server__toggle[aria-expanded="true"] { border-color: #b38d51; background: #28221b; }
.dnt-server__toggle [data-donate-server-label] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 1; }
.dnt-server__icon { flex: 0 0 20px; width: 20px; height: 20px; color: #cba56a; }
.dnt-server__arrow { flex: 0 0 16px; width: 16px; height: 16px; color: #cba56a; }
.dnt-server__toggle[aria-expanded="true"] .dnt-server__arrow { transform: rotate(180deg); }
.dnt-server__menu { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; right: 0; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid #79603c; border-radius: 3px; background: #191612; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.dnt-server__menu[hidden] { display: none; }
.dnt-server__option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 2px; background: transparent; color: #d9cdb9; font: inherit; font-size: 14px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.dnt-server__option:hover, .dnt-server__option.is-active { background: #332b20; color: #f4e5c9; }
.dnt-server__option[aria-selected="true"] { color: #e6bb74; }
.dnt-server__option[aria-selected="true"]::after { content: '\2713'; margin-left: auto; padding-left: 12px; color: #e6bb74; }
.dnt-currencies { margin: 0; padding: 0; min-width: 0; border: 0; }
.dnt-currencies legend { margin-bottom: .6rem; padding: 0; font-size: 13px; opacity: .8; }
.dnt-currencies__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dnt-currency { position: relative; cursor: pointer; min-width: 0; }
.dnt-currency[hidden] { display: none; }
.dnt-currency input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dnt-currency__body { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; box-sizing: border-box; padding: 16px 8px 14px; border: 1px solid #4b3d2c; border-radius: 8px; background: #191510; color: #eadcc5; transition: border-color .15s, background .15s; }
.dnt-currency:hover .dnt-currency__body { border-color: #997542; background: #241d14; }
.dnt-currency input:checked + .dnt-currency__body { border-color: #d6ac66; background: #2b2217; box-shadow: inset 0 0 0 1px rgba(214, 172, 102, .12); }
.dnt-currency input:checked + .dnt-currency__body::after { content: '\2713'; position: absolute; top: 7px; right: 8px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #d6ac66; color: #20180e; font: 700 11px/1 sans-serif; }
.dnt-currency input:focus-visible + .dnt-currency__body, .dnt-currency:focus-visible .dnt-currency__body { outline: 2px solid rgb(var(--color-accent, 218, 170, 86)); outline-offset: 3px; }
.dnt-currency__icon { display: grid; place-items: center; width: 52px; height: 42px; margin-bottom: 4px; color: #d6ac66; font: 600 23px/1 "Segoe UI", sans-serif; }
.dnt-currency__icon svg { display: block; width: 38px; height: 38px; }
.dnt-currency__icon svg[data-payment-icon="card"] { width: 52px; height: 42px; }
.dnt-currency__icon svg[data-payment-icon="platega"] rect { fill: #245b8e; }
.dnt-currency__icon svg[data-payment-icon="platega"] path { display: none; }
.dnt-currency__icon svg[data-payment-icon="platega"] text { fill: #fff; font: 700 34px/1 "Segoe UI", sans-serif; }
.dnt-currency__icon.is-currency { font-size: 21px; }
.dnt-currency__title { font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; }
.dnt-currency__note { color: #b6a488; font-size: 10px; line-height: 1.4; text-align: center; }
.dnt-currencies__status { margin: 0; font-size: 12px; line-height: 1.5; color: #b6a488; }
@media (max-width: 520px) {
    .dnt-currencies__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .dnt-currency__body { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 3px 12px; justify-items: start; padding: 11px 14px; }
    .dnt-currency__icon { grid-row: span 2; margin: 0; }
    .dnt-currency__title { padding-right: 12px; text-align: left; }
    .dnt-currency__note { text-align: left; }
}
.dnt-upload { display: grid; gap: .65rem; margin: 1rem 0; }
.dnt-upload .ui-btn { justify-self: start; }
.dnt-upload__preview { display: block; max-width: 100%; max-height: 240px; object-fit: contain; border: 1px solid rgba(var(--color-accent, 218, 170, 86), .3); }
.dnt-upload__preview[hidden] { display: none; }
.dnt-upload__status { margin: 0; font-size: .85rem; line-height: 1.5; }

/* Chrome/Edge/Safari не должны перекрашивать тёмные поля в белый при autofill. */
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus,
.admin-form input:-webkit-autofill,
.admin-form input:-webkit-autofill:hover,
.admin-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f4ead8 !important;
    caret-color: #f4ead8;
    -webkit-box-shadow: 0 0 0 1000px #171411 inset !important;
    box-shadow: 0 0 0 1000px #171411 inset !important;
    border-color: rgba(var(--color-accent, 218, 170, 86), .46) !important;
    transition: background-color 9999s ease-out 0s;
}
.auth-field input:autofill,
.admin-form input:autofill {
    color: #f4ead8 !important;
    background: #171411 !important;
}
.auth-captcha {
    display: grid;
    gap: .6rem;
    padding: .8rem;
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .2);
    border-radius: 7px;
    background: rgba(218, 170, 86, .035);
}
.auth-captcha__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    color: rgba(245, 232, 205, .78);
    font-size: .76rem;
    line-height: 1.45;
}
.auth-captcha__head b { color: #f0d69e; font-weight: 600; }
.auth-captcha__image {
    display: block;
    width: 100%;
    max-width: 260px;
    height: 84px;
    margin-inline: auto;
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .26);
    border-radius: 4px;
    object-fit: contain;
    background: #f4f1e8;
}
.auth-captcha__image[hidden] { display: none; }
.auth-captcha__refresh {
    flex: 0 0 auto;
    position: relative;
    padding: .25rem .45rem;
    border: 0;
    border-bottom: 1px solid rgba(var(--color-accent, 218, 170, 86), .35);
    cursor: pointer;
    color: rgb(var(--color-accent, 218, 170, 86));
    font: inherit;
    font-size: .7rem;
    background: transparent;
    transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.auth-captcha__refresh:hover {
    color: #ffe2a6;
    border-color: #ffe2a6;
}
.auth-captcha__refresh:focus-visible {
    outline: 2px solid rgba(var(--color-accent, 218, 170, 86), .42);
    outline-offset: 3px;
}
.auth-captcha__refresh:disabled { cursor: wait; opacity: .55; }
.auth-captcha__refresh.is-loading { animation: authCaptchaPulse .8s ease-in-out infinite alternate; }
.auth-captcha .auth-field { margin: 0; }
.auth-captcha .field-check { min-height: 0; }
@keyframes authCaptchaPulse { to { opacity: .35; } }
.auth-field__err { color: rgb(var(--color-red, 236, 25, 25)); font-size: .8rem; font-style: normal; }
.auth-alert { padding: .7rem 1rem; border-radius: 3px; margin-bottom: 1rem; font-size: .9rem; }
.auth-alert_error { background: rgba(var(--color-red, 236, 25, 25), .15); border: 1px solid rgba(var(--color-red, 236, 25, 25), .4); }
.auth-card__foot { margin: 1.4rem 0 0; text-align: center; font-size: .9rem; opacity: .85; }
.dash__list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .4rem; opacity: .9; }
.dash__admin { color: rgb(var(--color-accent, 218, 170, 86)); }
.news-single { padding: 1rem 0; }
.news-single__title { font-family: var(--font-1, "Trajan Pro 3", serif); color: rgb(var(--color-accent, 218, 170, 86)); }
.news-single__date { opacity: .6; font-size: .85rem; }
.error-page { text-align: center; padding: 2rem 0; }
.auth-alert_ok { background: rgba(14, 185, 14, .15); border: 1px solid rgba(14, 185, 14, .4); }
.auth-card__foot a { color: rgb(var(--color-accent, 218, 170, 86)); }

/* --- Новости: активный пост --- */
.post { cursor: pointer; }
.post_active { outline: 1px solid rgba(var(--color-accent, 218,170,86), .7); outline-offset: 2px; }
.post__front { cursor: pointer; }
.post__bt { border: 0; cursor: pointer; font-family: inherit; }
.post__bt:focus-visible { outline: 2px solid #daaa56; outline-offset: 4px; }
.post:focus-within .post__front { opacity: 1; visibility: visible; }
.news-details { width: auto; flex-shrink: 0; }
.notification__bar { flex-wrap: wrap; gap: 10px; }
.news__notificationbox { min-width: 0; }
[data-news-view] { min-width: 0; width: 100%; }
[data-news-view] .notification__subtitle { font-size: 13px; line-height: 1.4; }
[data-news-view] .notification__title {
    margin: 6px 0 20px;
    font-family: var(--font-3, "Intro Book", sans-serif);
    font-size: clamp(13px, 1.15vw, 18px);
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-news-view] .notification__bar { margin-top: auto; padding-top: 12px; }

/* --- Гайды: сетка 4×2 --- */
.guides__empty { opacity: .7; }
.guides__searchbar { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 760px; margin: 4px auto 16px; text-align: left; }
.guides__search { display: block; flex: 1; min-width: 0; color: #c8a76b; }
.guides__searchbox { display: flex; align-items: center; min-height: 46px; padding: 0 7px 0 16px; border: 1px solid #76603b; border-radius: 5px; background: rgba(14, 13, 11, .92); box-shadow: inset 0 1px 0 #ffffff08; transition: border-color .15s; }
.guides__searchbox:focus-within { border-color: #d8b573; outline: 2px solid #d8b57320; outline-offset: 2px; }
.guides__searchbox > svg { flex: 0 0 19px; width: 19px; height: 19px; }
.guides__searchbox input { width: 100%; min-width: 0; height: 44px; border: 0; padding: 0 12px; outline: none; background: transparent; color: #f3e8d4; font-family: var(--font-3, Arial, sans-serif); font-size: 15px; }
.guides__searchbox input::placeholder { color: #b5ad9e; opacity: 1; }
.guides__searchbox input::-webkit-search-cancel-button { display: none; }
.guides__searchbox button { flex: 0 0 30px; height: 30px; border: 0; border-radius: 3px; background: transparent; color: #d2c1a1; font: 24px Arial, sans-serif; cursor: pointer; }
.guides__searchbox button[hidden], .guides__empty[hidden] { display: none; }
.guides__searchbox button:hover { background: rgba(224, 183, 101, .12); }
.guides__count { flex-shrink: 0; color: #c2b394; font-family: var(--font-3, Arial, sans-serif); font-size: 13px; white-space: nowrap; }
.guides__empty { margin: 26px auto; padding: 20px; text-align: center; }
@media (max-width: 560px) {
    .guides__searchbar { display: block; margin-top: 16px; }
    .guides__count { padding: 10px 0 0; }
}

/* Строка-предупреждение «пусто» (нет новостей/руководств) */
.empty-note {
    display: flex; align-items: center; gap: .85rem;
    margin: .5rem 0; padding: .9rem 1.2rem; border-radius: 12px;
    background: linear-gradient(180deg, rgba(var(--color-accent, 218,170,86), .12), rgba(var(--color-accent, 218,170,86), .05));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .35);
    border-left-width: 4px;
    color: rgb(var(--color-light, 232,209,166));
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.empty-note__ico {
    flex: 0 0 auto; display: grid; place-items: center;
    color: rgb(var(--color-accent, 218,170,86));
    filter: drop-shadow(0 0 6px rgba(var(--color-accent, 218,170,86), .35));
}
.empty-note__text { font-size: .96rem; line-height: 1.45; }
.guides__grid {
    /* Flex + wrap + center: любое число карточек на странице (в т.ч. 2 на
       последней) центрируется, а не прижимается влево, как в CSS-grid. */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 16px;
    margin: 18px auto 0;
    width: 100%;
    max-width: 1040px;
}
.guides__grid .gcard { flex: 0 0 240px; max-width: 240px; } /* 4 в ряд: 4×240 + 3×16 = 1008 */

/* --- Карточка гайда (self-contained, без вендорного .post) --- */
.gcard {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    min-height: 236px; cursor: pointer; border-radius: 14px;
    background: linear-gradient(180deg, rgba(32,25,18,.55) 0%, rgba(14,11,8,.8) 100%);
    border: 1px solid rgba(var(--color-accent, 218,170,86), .22);
    box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gcard::before { /* тонкая золотая линия-подсветка сверху при наведении */
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3;
    background: linear-gradient(90deg, transparent, rgb(var(--color-accent, 218,170,86)), transparent);
    opacity: 0; transition: opacity .25s ease;
}
.gcard:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--color-accent, 218,170,86), .6);
    box-shadow: 0 18px 42px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
.gcard:hover::before { opacity: 1; }

.gcard__media {
    position: relative; height: 118px; flex-shrink: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: transform .45s ease;
}
.gcard__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,11,8,0) 35%, rgba(14,11,8,.55) 75%, rgba(14,11,8,.9) 100%);
}
.gcard:hover .gcard__media { transform: scale(1.07); }

.gcard__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .45rem; padding: 14px 16px 14px; flex: 1; }
.gcard__title {
    margin: 0; color: #fff; font-family: var(--font-2, "intro", sans-serif);
    font-size: .98rem; line-height: 1.25; letter-spacing: .01em; text-transform: uppercase;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gcard__excerpt {
    margin: 0; font-size: .82rem; line-height: 1.5; opacity: .72;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gcard__foot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.08);
}
.gcard__date { font-size: .72rem; letter-spacing: .04em; opacity: .5; }
.gcard__more {
    display: inline-flex; align-items: center; gap: .35rem;
    font-family: var(--font-2, "intro", sans-serif); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
    color: rgb(var(--color-accent, 218,170,86)); transition: gap .2s ease;
}
.gcard__more i { font-style: normal; transition: transform .2s ease; }
.gcard:hover .gcard__more { gap: .6rem; }
.gcard:hover .gcard__more i { transform: translateX(4px); }

/* Пагинация — кружочки по центру относительно всей сетки блоков */
.guides__dots { display: flex; gap: 10px; justify-content: center; align-items: center; width: 100%; max-width: 1040px; margin: 18px auto 0; }
.guides__dot {
    width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
    background: rgba(var(--color-accent, 218,170,86), .25);
    border: 1px solid rgba(var(--color-accent, 218,170,86), .45);
    transition: background .2s ease, transform .15s ease;
}
.guides__dot:hover { transform: scale(1.15); }
.guides__dot.is-active { background: rgb(var(--color-accent, 218,170,86)); border-color: #b07f2f; }

/* Карточки фикс. ширины + wrap: адаптив происходит сам (меньше в ряд).
   На узких экранах слегка ужимаем карточку, чтобы влезало 2 в ряд. */
@media (max-width: 560px) { .guides__grid .gcard { flex-basis: 46vw; max-width: 46vw; } }

/* --- Модальная страница (подтверждение email и т.п.) --- */
.body_modalpage { display: block; overflow: hidden; }
.modalpage-bg {
    position: fixed; inset: 0; z-index: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transform: scale(1.05);
}
.ui-modal_page { z-index: 10; }
.ui-modal__dialog_center { max-width: 460px; text-align: center; padding: 34px 32px 30px; animation: modalPop .28s ease both; }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.msg-modal__icon {
    width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; line-height: 1;
}
.msg-modal.is-ok .msg-modal__icon {
    color: #3fbf5f; background: rgba(63,191,95,.12);
    border: 1.5px solid rgba(63,191,95,.5); box-shadow: 0 0 24px rgba(63,191,95,.3);
}
.msg-modal.is-err .msg-modal__icon {
    color: #e0473c; background: rgba(224,71,60,.12);
    border: 1.5px solid rgba(224,71,60,.5); box-shadow: 0 0 24px rgba(224,71,60,.3);
}
.msg-modal__title { margin: 0 0 8px; font-family: var(--font-1, "Trajan Pro 3", serif); color: rgb(var(--color-accent, 218,170,86)); font-size: 1.5rem; }
.msg-modal__text { margin: 0 0 22px; line-height: 1.6; opacity: .85; }
.msg-modal__hint { margin: -12px 0 20px; font-size: .85rem; opacity: .65; }
.msg-modal__actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* --- Флэш-тост (после редиректа регистрации/входа) --- */
.site-toast {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    z-index: 800; max-width: 90vw; padding: .8rem 1.3rem; border-radius: 10px;
    font-size: .92rem; line-height: 1.4; cursor: pointer;
    box-shadow: 0 14px 40px rgba(0,0,0,.45); backdrop-filter: blur(8px);
    animation: toastIn .3s ease both;
}
.site-toast_ok  { background: rgba(24,74,40,.92); border: 1px solid rgba(63,191,95,.55); color: #d9f7e2; }
.site-toast_err { background: rgba(74,26,24,.92); border: 1px solid rgba(224,71,60,.55); color: #f7dad7; }
.site-toast.is-hide { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -14px); } }
.auth-modal__lead { margin: 0 0 1rem; opacity: .8; font-size: .88rem; line-height: 1.5; }

/* --- Модальное окно (blur) --- */
body.modal-open { overflow: hidden; }
.auth-form_modal { max-width: 360px; margin: 0 auto; }
.ui-modal { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ui-modal[hidden] { display: none; }
/* Вторичная модалка (правила и т.п.) — поверх основной. */
.ui-modal_stacked { z-index: 700; }
.ui-modal__overlay { position: absolute; inset: 0; background: rgba(5, 6, 10, .78); }
.ui-modal__dialog {
    position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 82vh; overflow: auto;
    background: linear-gradient(160deg, rgba(28,22,16,.55) 0%, rgba(14,11,8,.62) 100%);
    background-color: #17130f;
    border: 1px solid rgba(var(--color-accent, 218,170,86), .35);
    border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.5); padding: 28px 30px;
}
.ui-btn_block { width: 100%; }
.ui-modal__close {
    position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; line-height: 30px;
    font-size: 24px; color: rgb(var(--color-light, 232,209,166)); background: transparent; border: 0; cursor: pointer; opacity: .7;
}
.ui-modal__close:hover { opacity: 1; }
.ui-modal__title { margin: 0 0 4px; font-family: var(--font-1, "Trajan Pro 3", serif); color: rgb(var(--color-accent, 218,170,86)); }
.ui-modal__date { font-size: .8rem; opacity: .6; margin-bottom: 16px; }
.ui-modal__body { line-height: 1.6; overflow-wrap: anywhere; }
.ui-modal__body img { max-width: 100%; height: auto; vertical-align: middle; }

.has-guide-tooltips .rosk-guide__loot-tooltip:not(.guide-tooltip),
.has-guide-tooltips .boss-guide__loot-tooltip:not(.guide-tooltip) { display: none; }
.guide-tooltip {
    position: fixed; z-index: 2147483647; inset: auto; margin: 0;
    width: min(25rem, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    box-sizing: border-box; overflow: auto; overscroll-behavior: contain;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
}
.guide-tooltip::before { display: none; }
.guide-tooltip_violet { border-color: #75449b; }
.guide-tooltip_violet h3 { border-color: rgba(191, 118, 255, .42); color: #d39bff; }
.bs-guide--drops .boss-guide__drop { display: block; min-width: 0; padding: 0; border: 0; background: none; color: #f0c382; font-weight: 700; text-decoration: underline dotted; text-underline-offset: 4px; }
.drop-guide__tooltip.guide-tooltip { width: min(440px, calc(100vw - 24px)); font: 14px/1.5 Arial, sans-serif; }
.drop-guide__tooltip.guide-tooltip strong { font: 700 16px/1.4 Arial, sans-serif; }

.discord-invite { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin-top: 20px; border-top: 1px solid #604c30; }
.discord-invite__art {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: 16px; min-height: 340px; padding: 30px 20px; background-size: cover; background-position: 37% center;
    color: #f0d49d; text-align: center;
}
.discord-invite__art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 12, .15), rgba(10, 10, 9, .93)); }
.discord-invite__art > * { position: relative; }
.discord-invite__art img { width: 165px; filter: drop-shadow(0 3px 9px #000); }
.discord-invite__art span { font-family: var(--font-1, serif); font-size: 14px; letter-spacing: .08em; }
.discord-invite__content { padding: 28px 0 0 28px; }
.discord-invite__icon { display: block; width: 38px; height: 38px; margin-bottom: 16px; color: #76b7ff; }
.discord-corner { position: fixed; right: 24px; bottom: 24px; z-index: 490; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #76b7ff80; border-radius: 14px; background: #121b28; color: #76b7ff; cursor: pointer; transition: background .15s, border-color .15s; }
.discord-corner svg { width: 30px; height: 30px; fill: currentColor; }
.discord-corner:hover { background: #1c2a3d; border-color: #76b7ff; }
.discord-corner:focus-visible { outline: 2px solid #76b7ff; outline-offset: 4px; }
@media (max-width: 640px) { .discord-corner { width: 46px; height: 46px; right: 14px; bottom: 14px; } }
.discord-invite__content h2 { margin: 0 0 14px; color: #f4dcac; font-family: var(--font-3, sans-serif); font-size: clamp(22px, 2.3vw, 28px); font-weight: 600; line-height: 1.2; }
.discord-invite__content p { margin: 0 0 18px; color: #c0b7aa; font-size: 15px; line-height: 1.6; }
.discord-invite__topics { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; color: #ded0b8; font-size: 14px; }
.discord-invite__topics span::before { content: "—"; margin-right: 9px; color: #c39a55; }
.discord-invite__join { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border: 1px solid #f0ce8d; background: #dfbd7c; color: #19150e; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .15s ease; }
.discord-invite__join:hover { background: #f2d7a2; color: #19150e; }
.discord-invite__join:focus-visible, .discord-invite__later:focus-visible { outline: 2px solid #f5d396; outline-offset: 4px; }
.discord-invite__join span { font-size: 22px; font-weight: 400; }
.discord-invite__later { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 0; background: transparent; color: #b8aea0; font: inherit; font-size: 14px; cursor: pointer; }
.discord-invite__later:hover { color: #f4dcac; }
.discord-invite__pending { display: block; padding: 12px 0; color: #c6b89e; font-size: 14px; }
@media (max-width: 640px) {
    .discord-invite { grid-template-columns: 1fr; margin-top: 14px; }
    .discord-invite__art { min-height: 155px; padding: 22px 18px; background-position: center 40%; gap: 8px; }
    .discord-invite__art img { width: 130px; }
    .discord-invite__content { padding: 22px 0 0; }
    .discord-invite__icon { display: none; }
}

/* --- Документные страницы (rules/terms/privacy) --- */
.doc-page { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.doc-page__logo img { height: 48px; margin-bottom: 1.5rem; }
.doc__title { font-family: var(--font-1, "Trajan Pro 3", serif); color: rgb(var(--color-accent, 218,170,86)); }
.doc__body { line-height: 1.7; opacity: .92; }
.doc__body h2 { font-family: var(--font-2, "intro", sans-serif); color: rgb(var(--color-accent, 218,170,86)); font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.doc__foot { margin-top: 2rem; }

/* --- Админка --- */
.admin { display: flex; min-height: 100vh; }
.admin__side {
    width: 220px; flex-shrink: 0; padding: 1.5rem 1rem;
    background: rgba(0,0,0,.35); border-right: 1px solid rgba(var(--color-accent, 218,170,86), .2);
    display: flex; flex-direction: column; gap: 1rem;
}
.admin__logo img { height: 42px; }
.admin__nav { display: flex; flex-direction: column; gap: .3rem; }
.admin__nav a {
    padding: .55rem .7rem; border-radius: 6px; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em;
    color: rgb(var(--color-light, 232,209,166));
}
.admin__nav a:hover { background: rgba(var(--color-accent, 218,170,86), .12); }
.admin__logout { margin-top: auto; }
.admin__main { flex: 1; padding: 2rem clamp(1rem, 4vw, 3rem); }
.admin__title {
    font-family: var(--font-1, "Trajan Pro 3", serif); color: rgb(var(--color-accent, 218,170,86));
    margin-top: 0; padding-bottom: .5rem; position: relative;
}
.admin__title::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, rgb(var(--color-accent, 218,170,86)), transparent);
}
.admin__hint { opacity: .75; font-size: .9rem; margin-bottom: 1.2rem; }
.admin__hint code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; }
.admin__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; }
.admin-card {
    display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem; border-radius: 10px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(var(--color-accent, 218,170,86), .22);
    color: rgb(var(--color-light, 232,209,166)); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em;
}
.admin-card:hover { border-color: rgba(var(--color-accent, 218,170,86), .55); color: rgb(var(--color-light, 232,209,166)); }
.admin-card__n { font-size: 2rem; font-weight: bold; color: rgb(var(--color-accent, 218,170,86)); }
/* Форма-карточка (по умолчанию) — единый вид на всех страницах админки */
.admin-form {
    max-width: 640px; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem;
    padding: 1.5rem; border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .2);
    box-shadow: 0 10px 30px rgba(0,0,0,.26);
}
/* Внутри панели карточная обёртка не нужна */
.admin-form_flush { max-width: none; margin: 0; margin-top: auto; padding: 0; background: none; border: 0; box-shadow: none; }
/* Широкая форма: под таблицы, которым 640px мало (администраторы тикетов) */
.admin-form_wide { max-width: min(1180px, 100%); }
/* Таблица шире экрана прокручивается внутри карточки, а не рвёт вёрстку */
.admin-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-scroll > .admin-table { min-width: 720px; }

.admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="number"],
.admin-form input[type="password"], .admin-form input[type="datetime-local"],
.admin-form textarea, .admin-form select {
    padding: .7rem .9rem; border-radius: 8px; border: 1px solid rgba(var(--color-accent, 218,170,86), .3);
    background: rgba(0,0,0,.35); color: rgb(var(--color-light, 232,209,166)); font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-form textarea, .admin-form select { font-family: ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none; border-color: rgb(var(--color-accent, 218,170,86));
    box-shadow: 0 0 0 3px rgba(var(--color-accent, 218,170,86), .15);
}
.admin-form input[type="file"] { font-size: .88rem; color: rgb(var(--color-light, 232,209,166)); }
.admin-check { display: flex; align-items: center; gap: .6rem; font-size: .9rem; opacity: .9; cursor: pointer; user-select: none; }
.admin-check input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 0;
    border-radius: 6px; border: 2px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04);
    position: relative; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
}
.admin-check input[type="checkbox"]:hover { border-color: rgb(var(--color-accent, 218,170,86)); }
.admin-check input[type="checkbox"]:checked {
    border-color: rgb(var(--color-accent, 218,170,86));
    background: linear-gradient(135deg, rgb(var(--color-accent, 218,170,86)), rgba(var(--color-accent, 218,170,86), .75));
    box-shadow: 0 0 0 3px rgba(var(--color-accent, 218,170,86), .16);
}
.admin-check input[type="checkbox"]::after {
    content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
    border: solid #1a1205; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transform-origin: center;
    transition: transform .2s cubic-bezier(.6,-0.28,.3,1.55);
}
.admin-check input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }

/* Таблица-карточка */
.admin-table {
    width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem;
    background: rgba(255,255,255,.025); border: 1px solid rgba(var(--color-accent, 218,170,86), .16);
    border-radius: 14px; overflow: hidden;
}
.admin-table th, .admin-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-table thead th { background: rgba(var(--color-accent, 218,170,86), .08); }
.admin-table th { color: rgb(var(--color-accent, 218,170,86)); text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; }
.admin-table tbody tr { transition: background .15s ease; }
.admin-table tbody tr:hover { background: rgba(var(--color-accent, 218,170,86), .06); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-del { background: transparent; border: 0; color: rgb(var(--color-red, 236,25,25)); cursor: pointer; font-size: 1rem; }

/* --- Админка: действия в таблице, вкладки, код --- */
.admin-form__actions { display: flex; align-items: center; gap: .8rem; }
.admin-table__act { display: flex; align-items: center; gap: .9rem; white-space: nowrap; }
.admin-table__act a { color: rgb(var(--color-accent, 218,170,86)); text-decoration: none; }
.admin-table__act a:hover { text-decoration: underline; }
.admin-table__act form { display: inline; margin: 0; }
.admin-table__del { background: transparent; border: 0; color: rgb(var(--color-red, 236,25,25)); cursor: pointer; font-size: .9rem; padding: 0; }
.admin-table__del:hover { text-decoration: underline; }
.admin-code { font-family: "Consolas","Courier New",monospace; font-size: .82rem; line-height: 1.4; white-space: pre; }
/* Read-only блок кода в админке: показать эталон, не давая его править. */
.admin-pre {
    margin: 0; padding: .8rem .9rem; overflow-x: auto; border-radius: 9px;
    font-family: "Consolas","Courier New",monospace; font-size: .8rem; line-height: 1.5;
    color: rgba(var(--color-light, 232, 209, 166), .82);
    background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .1);
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.4rem; }
.admin-tabs__item {
    padding: .45rem 1rem; border-radius: 8px; text-decoration: none; font-size: .85rem;
    background: rgba(255,255,255,.05); color: rgb(var(--color-light, 232,209,166));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .28); transition: background .2s ease, color .2s ease;
}
.admin-tabs__item.is-active { background: rgb(var(--color-accent, 218,170,86)); color: #1a140a; border-color: #b07f2f; }
.admin-thumb { margin: -4px 0 4px; }
.admin-thumb img { max-width: 220px; max-height: 120px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); display: block; }

/* --- Активный пункт бокового меню админки --- */
.admin__nav a.is-active {
    background: linear-gradient(135deg, rgba(var(--color-accent, 218,170,86), .9), rgba(var(--color-accent, 218,170,86), .65));
    color: #1a140a; font-weight: 700;
    box-shadow: 0 4px 14px rgba(var(--color-accent, 218,170,86), .18);
}
.admin__nav a.is-active:hover { background: linear-gradient(135deg, rgba(var(--color-accent, 218,170,86), .95), rgba(var(--color-accent, 218,170,86), .7)); }

/* --- Карточки состояния лаунчера --- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
    max-width: 980px;
    margin: 0 0 1.6rem;
}
.admin-stat {
    min-width: 0; display: flex; flex-direction: column; gap: .35rem;
    padding: 1rem 1.2rem; border-radius: 12px;
    background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .18);
}
.admin-stat__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.admin-stat__value { font-size: 1.5rem; font-weight: 700; color: rgb(var(--color-accent, 218,170,86)); }
.admin-version { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.admin-version-reset { display: inline-flex; margin: 0; }
.admin-version-reset__button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    width: auto;
    min-height: 32px;
    padding: .36rem .7rem .36rem .58rem;
    color: #e8d1a6;
    background: linear-gradient(135deg, rgba(var(--color-accent, 218,170,86), .14), rgba(var(--color-accent, 218,170,86), .045));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .38);
    border-radius: 999px;
    box-shadow: inset 0 1px rgba(255,255,255,.05), 0 5px 14px rgba(0,0,0,.16);
    font: 600 .69rem/1 var(--font-2, "intro", sans-serif);
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .18s ease;
}
.admin-version-reset__button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.16) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform .45s ease;
}
.admin-version-reset__icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s ease;
}
.admin-version-reset__button:hover {
    color: #fff0c8;
    background: linear-gradient(135deg, rgba(var(--color-accent, 218,170,86), .25), rgba(var(--color-accent, 218,170,86), .09));
    border-color: rgba(var(--color-accent, 218,170,86), .72);
    box-shadow: 0 8px 20px rgba(0,0,0,.24), 0 0 16px rgba(var(--color-accent, 218,170,86), .09);
    transform: translateY(-2px);
}
.admin-version-reset__button:hover::before { transform: translateX(120%); }
.admin-version-reset__button:hover .admin-version-reset__icon { transform: rotate(-190deg); }
.admin-version-reset__button:active { transform: translateY(0) scale(.97); }
.admin-version-reset__button:focus-visible {
    outline: 2px solid rgba(var(--color-accent, 218,170,86), .92);
    outline-offset: 3px;
}
.admin-badge {
    display: inline-block; padding: .3rem .7rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.admin-badge_ok  { background: rgba(63,191,95,.16);  color: #7fe29a; border: 1px solid rgba(63,191,95,.4); }
.admin-badge_off { background: rgba(224,71,60,.14);  color: #e78a80; border: 1px solid rgba(224,71,60,.4); }

/* --- Панели-карточки (Launcher.exe + cache.json в одном блоке) --- */
.admin-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; max-width: 980px; }
.admin-panel {
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .2);
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.admin-panel:hover {
    border-color: rgba(var(--color-accent, 218,170,86), .5);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0,0,0,.36);
}
.admin-panel__head {
    display: flex; align-items: center; gap: .7rem;
    padding: 1rem 1.3rem; border-bottom: 1px solid rgba(var(--color-accent, 218,170,86), .16);
    background: rgba(var(--color-accent, 218,170,86), .06);
}
.admin-panel__ico {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: rgba(var(--color-accent, 218,170,86), .16); color: rgb(var(--color-accent, 218,170,86));
    font-size: 1.05rem; flex-shrink: 0;
}
.admin-panel__title { margin: 0; font-size: 1.05rem; color: rgb(var(--color-light, 232,209,166)); font-family: var(--font-1, "Trajan Pro 3", serif); }
.admin-panel__body { padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.admin-panel__lead { margin: 0; font-size: .88rem; line-height: 1.55; opacity: .75; }
.admin-panel__lead code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; }

/* --- Кастомная кнопка выбора файла --- */
.admin-file { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; cursor: pointer; }
.admin-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.admin-file__btn {
    display: inline-block; padding: .6rem 1.1rem; border-radius: 8px; white-space: nowrap;
    background: rgba(var(--color-accent, 218,170,86), .14); color: rgb(var(--color-accent, 218,170,86));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .4); font-size: .88rem; font-weight: 600;
    transition: background .2s ease, transform .1s ease;
}
.admin-file:hover .admin-file__btn { background: rgba(var(--color-accent, 218,170,86), .24); }
.admin-file:active .admin-file__btn { transform: scale(.97); }
.admin-file__name { font-size: .85rem; opacity: .7; word-break: break-all; }

/* --- Картинки новостей: изображение как фон карточки (вёрстка вендора не трогается) --- */
/* .post уже position:relative; display:flex column; .post__content{margin-top:auto} держит дату внизу */
.post.post_bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.post.post_bg .post__title { color: #fff; }
.notification__pic { margin: 0 0 14px; max-height: 200px; overflow: hidden; border-radius: 12px; }
.notification__pic img { width: 100%; height: 100%; max-height: 200px; object-fit: cover; display: block; }

/* --- Полоса надёжности пароля (красный/зелёный сегменты) --- */
.pass-meter { margin: -6px 0 4px; }
.pass-meter__bar { display: flex; gap: 6px; }
.pass-meter__seg {
    flex: 1; height: 6px; border-radius: 4px;
    background: rgba(255,255,255,.12);
    transition: background .25s ease;
}
.pass-meter__seg.is-bad { background: #e0473c; }   /* красный */
.pass-meter__seg.is-ok  { background: #3fbf5f; }   /* зелёный */
.pass-meter__hint { margin-top: 6px; font-size: .8rem; opacity: .8; }
.pass-meter__hint.is-bad { color: #e0796f; opacity: 1; }
.pass-meter__hint.is-ok  { color: #6fdc8a; opacity: 1; }

/* Живая проверка отдельных полей (логин/email/капча): ✓ зелёным, ✗ красным */
.field-check { min-height: 1em; margin: -2px 0 2px; font-size: .8rem; line-height: 1.3; }
.field-check.is-ok  { color: #6fdc8a; }
.field-check.is-bad { color: #e0796f; }

/* Красивый чекбокс принятия правил с анимацией «галочки» */
.auth-check {
    display: flex; align-items: center; gap: .65rem;
    cursor: pointer; user-select: none; font-size: .9rem; line-height: 1.35;
}
.auth-check input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    flex: 0 0 auto; width: 22px; height: 22px; margin: 0;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .04);
    position: relative; cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .1s ease;
}
.auth-check input[type="checkbox"]:hover {
    border-color: rgb(var(--color-accent, 218, 170, 86));
}
.auth-check input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-accent, 218, 170, 86), .35);
}
.auth-check input[type="checkbox"]:checked {
    border-color: rgb(var(--color-accent, 218, 170, 86));
    background:
        linear-gradient(135deg,
            rgb(var(--color-accent, 218, 170, 86)),
            rgba(var(--color-accent, 218, 170, 86), .75));
    box-shadow: 0 0 0 4px rgba(var(--color-accent, 218, 170, 86), .16);
}
.auth-check input[type="checkbox"]::after {
    content: ''; position: absolute; left: 6px; top: 2px;
    width: 5px; height: 10px;
    border: solid #1a1205; border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0); transform-origin: center;
    transition: transform .2s cubic-bezier(.6, -0.28, .3, 1.55);
}
.auth-check input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}
.auth-check input[type="checkbox"]:active { transform: scale(.9); }
.auth-check a { color: rgb(var(--color-accent, 218, 170, 86)); }

/* --- Секция «О сервере»: красивый контент-блок --- */
.about { display: flex; align-items: center; justify-content: center; width: 100%; }
.about-card {
    position: relative; width: 100%; max-width: 860px;
    padding: 2.4rem clamp(1.2rem, 4vw, 3rem) 2.2rem;
    border-radius: 20px; overflow: hidden;
    background: linear-gradient(160deg, rgba(28,22,16,.5) 0%, rgba(14,11,8,.55) 100%);
    border: 1px solid rgba(var(--color-accent, 218,170,86), .28);
    box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
/* мягкое золотое свечение сверху карточки */
.about-card__glow {
    position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
    width: 120%; height: 80%; pointer-events: none; z-index: 0;
    background: radial-gradient(closest-side, rgba(var(--color-accent, 218,170,86), .16), transparent 70%);
}
.about-card > * { position: relative; z-index: 1; }

.about-card__head {
    display: flex; align-items: center; justify-content: center; gap: .9rem;
    margin-bottom: 1.6rem;
}
.about-card__title {
    margin: 0; text-align: center; white-space: nowrap;
    font-family: var(--font-1, "Trajan Pro 3", serif);
    color: rgb(var(--color-accent, 218,170,86));
    font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: .04em; text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(var(--color-accent, 218,170,86), .35);
}
.about-card__diamond {
    width: 9px; height: 9px; flex-shrink: 0; transform: rotate(45deg);
    background: rgb(var(--color-accent, 218,170,86));
    box-shadow: 0 0 12px rgba(var(--color-accent, 218,170,86), .8);
}
.about-card__diamond::before,
.about-card__diamond::after { content: none; }
/* линии по бокам заголовка */
.about-card__head::before,
.about-card__head::after {
    content: ""; height: 1px; flex: 1; max-width: 120px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-accent, 218,170,86), .5));
}
.about-card__head::after { transform: scaleX(-1); }

.about-card__body {
    max-height: 54vh; overflow-y: auto; padding-right: 10px;
    line-height: 1.75; font-size: .96rem; color: rgb(var(--color-light, 232,209,166));
}
.about-card__body h2 {
    font-family: var(--font-2, "intro", sans-serif);
    color: rgb(var(--color-accent, 218,170,86));
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em;
    margin: 1.5rem 0 .6rem; padding-left: .8rem; position: relative;
}
.about-card__body h2::before {
    content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; border-radius: 2px;
    background: rgb(var(--color-accent, 218,170,86));
}
.about-card__body h2:first-child { margin-top: 0; }
.about-card__body p { margin: 0 0 1rem; opacity: .9; }
.about-card__body ul { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.about-card__body li { position: relative; padding-left: 1.4rem; margin: .5rem 0; opacity: .9; }
.about-card__body li::before {
    content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px;
    transform: rotate(45deg); background: rgb(var(--color-accent, 218,170,86));
}
.about-card__body a { color: rgb(var(--color-accent, 218,170,86)); }
.about-card__body a:hover { color: rgb(var(--color-accent-hover, 255,255,0)); }
.about__empty { opacity: .7; text-align: center; }
.about-card__body::-webkit-scrollbar { width: 6px; }
.about-card__body::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 4px; }
.about-card__body::-webkit-scrollbar-thumb { background: rgba(var(--color-accent, 218,170,86), .4); border-radius: 4px; }
@media (max-width: 560px) {
    .about-card { padding: 1.6rem 1.1rem; border-radius: 16px; }
    .about-card__head::before, .about-card__head::after { max-width: 40px; }
}

/* --- Обратный отсчёт до старта сервера --- */
.server__countdown {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 10px; border-radius: 10px;
    background: rgba(10, 8, 5, .55);
    border: 1px solid rgba(var(--color-accent, 218,170,86), .35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.server__countdown-label {
    font-size: .62rem; text-transform: uppercase; letter-spacing: .08em;
    color: rgb(var(--color-accent, 218,170,86)); opacity: .9;
}
.server__countdown-time {
    display: flex; align-items: baseline; gap: 2px;
    font-family: var(--font-1, "Trajan Pro 3", serif); color: #fff;
    font-variant-numeric: tabular-nums;
}
.server__countdown-time span {
    font-size: 1rem; font-weight: 700; min-width: 1.4em; text-align: center;
    text-shadow: 0 0 10px rgba(var(--color-accent, 218,170,86), .5);
}
.server__countdown-time i { font-style: normal; font-size: .6rem; opacity: .6; margin-right: 3px; }
.server__countdown.is-started { border-color: rgba(63, 191, 95, .5); }
.server__countdown.is-started .server__countdown-label { color: #3fbf5f; }

/* --- Гайды: категории --- */
.guides__cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 4px; }
.guides__cat {
    padding: .45rem 1rem; border-radius: 20px; cursor: pointer; font-size: .82rem; letter-spacing: .03em;
    background: rgba(255,255,255,.05); color: rgb(var(--color-light, 232,209,166));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .28);
    transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease;
}
.guides__cat:hover { transform: translateY(-2px); border-color: rgba(var(--color-accent, 218,170,86), .6); }
.guides__cat.is-active { background: rgb(var(--color-accent, 218,170,86)); color: #1a140a; border-color: #b07f2f; }

/* --- Эффекты переключения страниц/категорий --- */
.guides__grid { transition: opacity .16s ease; }
.guides__grid.is-switching { opacity: 0; }
@keyframes guideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.guides__grid .gcard.is-in { animation: guideIn .32s ease both; }

/* Кружочки уже центрированы: .guides__dots { justify-content:center } */

/* --- Выдвижное меню «Социальные сети» в навигации --- */
.menu__el_social { position: relative; }
.menu__item_dropdown { cursor: pointer; display: inline-flex; align-items: center; gap: .4em; }
.menu__caret {
    width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; transition: transform .25s ease; opacity: .85;
}
.menu__el_social:hover .menu__caret,
.menu__el_social:focus-within .menu__caret,
.menu__el_social.is-open .menu__caret { transform: rotate(180deg); }

/* Прозрачный «мостик» на зазор — чтобы курсор не терял меню (на самом li) */
.menu__el_social::after {
    content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 28px; z-index: 59;
}
.menu__dropdown {
    position: absolute; top: calc(100% + .45rem); left: 50%;
    transform: translateX(-50%) translateY(14px) scale(.98); transform-origin: top center;
    min-width: 236px; margin: 0; padding: .62rem; list-style: none;
    background:
        radial-gradient(circle at 50% 0, rgba(var(--color-accent, 218,170,86), .22), transparent 62%),
        linear-gradient(180deg, rgba(14, 12, 10, .68), rgba(14, 12, 10, .42));
    -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(var(--color-accent, 218,170,86), .32); border-radius: 16px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .42), inset 0 1px rgba(255,255,255,.08);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, visibility .24s, border-color .24s ease;
    z-index: 60;
}
/* Стеклянный мостик к вкладке: блок выглядит продолжением пункта «Социальные сети». */
.menu__dropdown::before {
    content: ''; position: absolute; top: -.65rem; left: 50%; transform: translateX(-50%);
    width: 58%; height: .7rem;
    background: linear-gradient(180deg, rgba(var(--color-accent, 218,170,86), .16), rgba(14,12,10,.5));
    border: 1px solid rgba(var(--color-accent, 218,170,86), .22);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
/* Золотая декоративная линия снизу — как у нативного подменю темы */
.menu__dropdown::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .22rem; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-accent, 218,170,86), .72), transparent);
}
.menu__el_social:hover .menu__dropdown,
.menu__el_social:focus-within .menu__dropdown,
.menu__el_social.is-open .menu__dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}
.menu__dropdown li { margin: 0; }
.menu__dropdown-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .66rem .78rem; border-radius: 12px; white-space: nowrap;
    color: #b5b5b5; text-decoration: none;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(var(--color-accent, 218,170,86), .08);
    font-family: var(--font-1, "Trajan Pro 3", "Times New Roman", serif);
    font-size: .95rem; text-transform: uppercase; letter-spacing: .03em;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.menu__dropdown li + li { margin-top: .35rem; }
.menu__dropdown-link:focus-visible,
.menu__dropdown-link:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--color-accent, 218,170,86), .17), rgba(255,255,255,.045));
    border-color: rgba(var(--color-accent, 218,170,86), .32);
    box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.07);
    transform: translateX(3px);
}
/* Иконка соцсети — золотой глиф, без «веб-бейджа» (в стиле навигации) */
.menu__soc-ico {
    width: 22px; height: 22px; flex: 0 0 auto;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    opacity: .82; filter: drop-shadow(0 0 0 rgba(var(--color-accent, 218,170,86), 0));
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.menu__dropdown-link:hover .menu__soc-ico,
.menu__dropdown-link:focus-visible .menu__soc-ico { opacity: 1; filter: drop-shadow(0 0 8px rgba(var(--color-accent, 218,170,86), .42)); transform: scale(1.08); }
.menu__soc-ico_vk {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23daaa56' d='M12.8 16.3c-5.4 0-8.9-3.8-9-10.1h2.8c.1 4.6 2.2 6.5 3.7 6.9V6.2h2.6v4c1.6-.2 3.2-1.9 3.7-4h2.6c-.4 2.4-2 4.1-3.2 4.8 1.2.6 3 2.1 3.7 5.3h-2.9c-.5-1.7-2-3.1-3.9-3.3v3.3h-.8z'/%3E%3C/svg%3E");
}
.menu__soc-ico_tg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23daaa56' d='M21.9 5.5 18.8 19c-.2 1-.9 1.2-1.7.8l-4.2-3.1-2 2c-.2.2-.4.4-.9.4l.3-4.4 7.9-7.1c.3-.3-.1-.5-.5-.2l-9.8 6.2-4.2-1.3c-.9-.3-.9-.9.2-1.4l16.4-6.3c.8-.3 1.4.2 1.1 1.4z'/%3E%3C/svg%3E");
}
.menu__soc-ico_discord {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23daaa56' d='M7.2 7.2c3.2-1.4 6.4-1.4 9.6 0 1.7 2.4 2.5 5.1 2.3 8.1-1.4 1.2-2.7 1.9-4 2.3l-1-1.4c.7-.2 1.4-.6 2-1.1-.8.4-1.6.7-2.4.9-2.3.7-4.8.7-7.1 0-.8-.2-1.6-.5-2.4-.9.6.5 1.3.9 2 1.1l-1 1.4c-1.3-.4-2.6-1.1-4-2.3-.2-3 .6-5.7 2.3-8.1Zm2.1 6.6c.8 0 1.4-.7 1.4-1.5s-.6-1.5-1.4-1.5-1.4.7-1.4 1.5.6 1.5 1.4 1.5Zm5.4 0c.8 0 1.4-.7 1.4-1.5s-.6-1.5-1.4-1.5-1.4.7-1.4 1.5.6 1.5 1.4 1.5Z'/%3E%3C/svg%3E");
}

/* --- Админка: интерактивная панель управления --- */
.body_admin {
    --admin-bg: 13, 12, 16;
    --admin-surface: 24, 22, 27;
    min-width: 320px;
    background:
        radial-gradient(circle at 78% 8%, rgba(172, 112, 255, .1), transparent 32rem),
        radial-gradient(circle at 42% 100%, rgba(var(--color-accent, 218, 170, 86), .09), transparent 38rem),
        rgb(var(--admin-bg));
}
.body_admin::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.admin-skip {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 200;
    padding: .7rem 1rem;
    border-radius: 8px;
    color: #171009;
    background: rgb(var(--color-accent, 218, 170, 86));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
    transform: translateY(calc(-100% - 1.2rem));
    transition: transform .2s ease;
}
.admin-skip:focus { color: #171009; transform: translateY(0); }
.admin { position: relative; z-index: 1; }
.admin__side {
    position: sticky;
    top: 0;
    width: 248px;
    height: 100vh;
    padding: 1.6rem 1.2rem 1.3rem;
    background: linear-gradient(180deg, rgba(24, 21, 25, .96), rgba(11, 10, 13, .94));
    border-right-color: rgba(var(--color-accent, 218, 170, 86), .16);
    box-shadow: 14px 0 42px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.admin__logo {
    display: inline-flex;
    align-self: flex-start;
    padding: .2rem .4rem .8rem;
    border-radius: 10px;
    transition: filter .2s ease, transform .2s ease;
}
.admin__logo img { height: 46px; max-width: 100%; object-fit: contain; }
.admin__logo:hover { filter: drop-shadow(0 0 13px rgba(var(--color-accent, 218, 170, 86), .42)); transform: translateY(-2px); }
.admin__nav { gap: .42rem; }
.admin__nav a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: .72rem .85rem .68rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .77rem;
    letter-spacing: .075em;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.admin__nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 2px;
    border-radius: 2px;
    background: rgb(var(--color-accent, 218, 170, 86));
    box-shadow: 0 0 12px rgba(var(--color-accent, 218, 170, 86), .7);
    transform: scaleY(0);
    transition: transform .2s ease;
}
.admin__nav a:hover {
    color: #fff4dc;
    background: rgba(var(--color-accent, 218, 170, 86), .09);
    border-color: rgba(var(--color-accent, 218, 170, 86), .14);
    transform: translateX(3px);
}
.admin__nav a:hover::before,
.admin__nav a.is-active::before { transform: scaleY(1); }
.admin__nav a.is-active,
.admin__nav a.is-active:hover {
    color: #1a140a;
    background: linear-gradient(135deg, #edcf83, rgb(var(--color-accent, 218, 170, 86)) 72%);
    border-color: rgba(255, 231, 169, .55);
    box-shadow: 0 8px 24px rgba(var(--color-accent, 218, 170, 86), .16), inset 0 1px rgba(255, 255, 255, .35);
}
.admin__nav a.is-active::before { background: #211606; box-shadow: none; }
.admin__logout { margin-top: auto; }
.admin__logout .ui-btn { min-height: 42px; }
.admin__main {
    min-width: 0;
    width: 100%;
    padding: clamp(1.5rem, 3.5vw, 3.5rem);
}
.admin__main:focus { outline: none; }
.admin__title {
    margin: 0;
    padding-bottom: .65rem;
    color: #f1d894;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: .025em;
    text-shadow: 0 8px 28px rgba(var(--color-accent, 218, 170, 86), .16);
}
.admin__title::after {
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, #f0cf78, rgba(var(--color-accent, 218, 170, 86), .08));
    box-shadow: 0 0 12px rgba(var(--color-accent, 218, 170, 86), .28);
}
.admin-dashboard { width: 100%; max-width: 1380px; }
.admin-dashboard__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}
.admin-dashboard__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .55rem;
    color: rgba(245, 228, 193, .58);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.admin-dashboard__eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}
.admin-dashboard__intro {
    max-width: 680px;
    margin: .85rem 0 0;
    color: rgba(238, 225, 201, .67);
    font-size: .95rem;
    line-height: 1.65;
}
.admin-dashboard__summary {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .75rem 1rem;
    color: rgba(238, 225, 201, .62);
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 12px;
    font-size: .73rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}
.admin-dashboard__summary-number {
    color: #f2d68d;
    font-size: 1.45rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}
.admin__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.9rem, 1.5vw, 1.35rem);
}
.admin-dashboard .admin-card {
    animation: adminCardEnter .58s cubic-bezier(.2, .75, .25, 1) backwards;
}
.admin-dashboard .admin-card:nth-child(2) { animation-delay: .07s; }
.admin-dashboard .admin-card:nth-child(3) { animation-delay: .14s; }
.admin-dashboard .admin-card:nth-child(4) { animation-delay: .21s; }
.admin-card {
    --card-rgb: 218, 170, 86;
    position: relative;
    isolation: isolate;
    min-height: 330px;
    gap: 0;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid rgba(var(--card-rgb), .22);
    border-radius: 20px;
    color: #f2e8d6;
    text-transform: none;
    background:
        radial-gradient(circle at 17% 4%, rgba(var(--card-rgb), .18), transparent 13rem),
        linear-gradient(155deg, rgba(34, 31, 37, .95), rgba(18, 17, 21, .97));
    box-shadow: 0 18px 44px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .045);
    transform: translateZ(0);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease, color .2s ease;
}
.admin-card::before {
    content: "";
    position: absolute;
    inset: 0 16% auto;
    height: 1px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(var(--card-rgb), .85), transparent);
    opacity: .65;
    transition: inset .3s ease, opacity .3s ease;
}
.admin-card::after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: -72px;
    width: 190px;
    height: 190px;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(var(--card-rgb), .14);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(var(--card-rgb), .025), 0 0 0 45px rgba(var(--card-rgb), .015);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s ease;
}
.admin-card > :not(.admin-card__shine):not(.admin-ripple) { position: relative; z-index: 2; }
.admin-card:hover,
.admin-card:focus-visible {
    color: #fff;
    border-color: rgba(var(--card-rgb), .6);
    box-shadow: 0 25px 58px rgba(0, 0, 0, .38), 0 0 32px rgba(var(--card-rgb), .12), inset 0 1px rgba(255, 255, 255, .08);
    transform: translateY(-8px);
}
.admin-card:hover::before,
.admin-card:focus-visible::before { inset-inline: 5%; opacity: 1; }
.admin-card:hover::after,
.admin-card:focus-visible::after { border-color: rgba(var(--card-rgb), .3); transform: translate(-12px, -10px) scale(1.08); }
.admin-card:focus-visible { outline: 3px solid rgba(var(--card-rgb), .4); outline-offset: 4px; }
.admin-card_news { --card-rgb: 239, 180, 76; }
.admin-card_guides { --card-rgb: 91, 166, 255; }
.admin-card_servers { --card-rgb: 79, 211, 143; }
.admin-card_launcher { --card-rgb: 188, 126, 255; }
.admin-card_support { --card-rgb: 255, 138, 108; }
.admin-card__shine {
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -42%;
    width: 24%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
    transform: skewX(-18deg);
}
.admin-card:hover .admin-card__shine,
.admin-card:focus-visible .admin-card__shine { animation: adminCardShine .85s ease-out; }
.admin-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.admin-card__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: rgb(var(--card-rgb));
    background: linear-gradient(145deg, rgba(var(--card-rgb), .2), rgba(var(--card-rgb), .06));
    border: 1px solid rgba(var(--card-rgb), .28);
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(var(--card-rgb), .08);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background .3s ease;
}
.admin-card__icon svg { width: 40px; height: 40px; overflow: visible; }
.admin-card__icon svg path,
.admin-card__icon svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.admin-card__icon .admin-icon__line { opacity: .68; stroke-width: 1.7; }
.admin-card__icon .admin-icon__signal { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; }
.admin-card:hover .admin-card__icon,
.admin-card:focus-visible .admin-card__icon {
    background: linear-gradient(145deg, rgba(var(--card-rgb), .28), rgba(var(--card-rgb), .1));
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 12px 28px rgba(var(--card-rgb), .18);
    transform: translateY(-3px) rotate(-2deg);
}
.admin-card__arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    color: rgba(241, 229, 206, .48);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.admin-card__arrow svg { width: 17px; height: 17px; }
.admin-card__arrow path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-card:hover .admin-card__arrow,
.admin-card:focus-visible .admin-card__arrow {
    color: rgb(var(--card-rgb));
    background: rgba(var(--card-rgb), .1);
    border-color: rgba(var(--card-rgb), .35);
    transform: translateX(3px);
}
.admin-card__metric {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    min-height: 54px;
    margin-top: auto;
    padding-top: 2.35rem;
}
.admin-card__metric_text { align-items: center; }
.admin-card__n {
    color: rgb(var(--card-rgb));
    font-family: var(--font-1, "Trajan Pro 3", serif);
    font-size: clamp(2.35rem, 3.6vw, 3.15rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.04em;
    text-shadow: 0 0 24px rgba(var(--card-rgb), .2);
}
.admin-card__unit {
    color: rgba(240, 228, 207, .48);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.admin-card__status {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem .72rem;
    color: rgb(var(--card-rgb));
    background: rgba(var(--card-rgb), .085);
    border: 1px solid rgba(var(--card-rgb), .22);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.admin-card__status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: adminStatusPulse 2s ease-in-out infinite;
}
.admin-card__title {
    margin-top: 1rem;
    color: #f6ead4;
    font-family: var(--font-1, "Trajan Pro 3", serif);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: .025em;
    transition: color .25s ease;
}
.admin-card:hover .admin-card__title,
.admin-card:focus-visible .admin-card__title { color: rgb(var(--card-rgb)); }
.admin-card__text {
    margin-top: .6rem;
    color: rgba(237, 226, 206, .57);
    font-size: .79rem;
    line-height: 1.55;
    letter-spacing: normal;
}
.admin-card_news:hover .admin-icon__paper,
.admin-card_news:focus-visible .admin-icon__paper { animation: adminNewsLift .72s ease; }
.admin-card_guides:hover .admin-icon__book:first-child,
.admin-card_guides:focus-visible .admin-icon__book:first-child { animation: adminBookLeft .72s ease; transform-origin: right center; }
.admin-card_guides:hover .admin-icon__book:nth-child(2),
.admin-card_guides:focus-visible .admin-icon__book:nth-child(2) { animation: adminBookRight .72s ease; transform-origin: left center; }
.admin-card_servers:hover .admin-icon__signal_one,
.admin-card_servers:focus-visible .admin-icon__signal_one { animation: adminServerSignal 1s ease-in-out infinite; }
.admin-card_servers:hover .admin-icon__signal_two,
.admin-card_servers:focus-visible .admin-icon__signal_two { animation: adminServerSignal 1s .2s ease-in-out infinite; }
.admin-card_launcher:hover .admin-icon__download,
.admin-card_launcher:focus-visible .admin-icon__download { animation: adminDownload .72s ease-in-out; }

/* Общие эффекты элементов управления во всех разделах админки. */
.admin .ui-btn,
.admin-file__btn,
.admin-tabs__item,
.admin-table__act a,
.admin-table__del,
.admin-del {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.admin .ui-btn { min-height: 46px; border-radius: 10px; transition: transform .18s ease, box-shadow .22s ease, filter .2s ease, border-color .2s ease; }
.admin .ui-btn:hover { transform: translateY(-2px); }
.admin .ui-btn:active { transform: translateY(1px) scale(.985); }
.admin .ui-btn:focus-visible,
.admin-file:focus-within .admin-file__btn,
.admin-tabs__item:focus-visible,
.admin-table__act a:focus-visible,
.admin-table__del:focus-visible,
.admin-del:focus-visible,
.admin__logo:focus-visible,
.admin__nav a:focus-visible,
.admin-check input:focus-visible {
    outline: 3px solid rgba(var(--color-accent, 218, 170, 86), .4);
    outline-offset: 3px;
}
.admin-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 8;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .32);
    transform: scale(0);
    animation: adminRipple .58s ease-out forwards;
}
.admin-card .admin-ripple { background: rgba(var(--card-rgb), .24); }
.admin-form {
    border-color: rgba(var(--color-accent, 218, 170, 86), .18);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .035);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.admin-form:not(.admin-form_flush):hover {
    border-color: rgba(var(--color-accent, 218, 170, 86), .3);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .31), inset 0 1px rgba(255, 255, 255, .05);
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form input[type="datetime-local"],
.admin-form textarea,
.admin-form select {
    border-color: rgba(var(--color-accent, 218, 170, 86), .22);
    background: rgba(6, 6, 8, .46);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .25);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .18s ease;
}
.admin-form input:hover,
.admin-form textarea:hover,
.admin-form select:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .45); background: rgba(8, 8, 10, .62); }
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    background: rgba(8, 8, 10, .75);
    box-shadow: 0 0 0 3px rgba(var(--color-accent, 218, 170, 86), .14), 0 8px 22px rgba(0, 0, 0, .22);
}
.admin-check { transition: color .2s ease, opacity .2s ease; }
.admin-check:hover { color: #fff2d6; opacity: 1; }
.admin-check input[type="checkbox"]:active { transform: scale(.88); }
.admin-table {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .025);
}
.admin-table tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.admin-table tbody tr:hover {
    background: rgba(var(--color-accent, 218, 170, 86), .075);
    box-shadow: inset 3px 0 rgb(var(--color-accent, 218, 170, 86));
}
.admin-table__act a,
.admin-table__del,
.admin-del { padding: .34rem .48rem; border-radius: 6px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.admin-table__act a:hover { text-decoration: none; background: rgba(var(--color-accent, 218, 170, 86), .11); transform: translateY(-1px); }
.admin-table__del:hover,
.admin-del:hover { color: #ff8b80; background: rgba(224, 71, 60, .12); text-decoration: none; transform: scale(1.04); }
.admin-tabs__item:hover { color: #f8e8c8; border-color: rgba(var(--color-accent, 218, 170, 86), .58); background: rgba(var(--color-accent, 218, 170, 86), .1); transform: translateY(-2px); }
.admin-tabs__item:active { transform: translateY(0) scale(.97); }
.admin-file__btn { box-shadow: inset 0 1px rgba(255, 255, 255, .04); }
.admin-file:hover .admin-file__btn { box-shadow: 0 8px 20px rgba(var(--color-accent, 218, 170, 86), .1), inset 0 1px rgba(255, 255, 255, .08); transform: translateY(-2px); }
.admin-file:active .admin-file__btn { transform: translateY(0) scale(.97); }
.admin-file.is-selected .admin-file__btn {
    color: #7fe29a;
    background: rgba(63, 191, 95, .1);
    border-color: rgba(63, 191, 95, .42);
}
.admin-file.is-selected .admin-file__name { color: #bceec9; opacity: .9; }
.admin-stat,
.admin-panel,
.admin-thumb img { transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.admin-stat:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .4); transform: translateY(-3px); box-shadow: 0 13px 28px rgba(0, 0, 0, .2); }
.admin-panel:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0, 0, 0, .38), 0 0 22px rgba(var(--color-accent, 218, 170, 86), .06); }
.admin-panel:hover .admin-panel__ico { filter: drop-shadow(0 0 8px rgba(var(--color-accent, 218, 170, 86), .45)); transform: rotate(-4deg) scale(1.05); }
.admin-panel__ico { transition: filter .25s ease, transform .25s ease; }
.admin-thumb img:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .5); filter: brightness(1.08); transform: scale(1.02); }
.admin .auth-alert { animation: adminAlertIn .35s ease both; }

@keyframes adminCardShine {
    0% { left: -42%; opacity: 0; }
    18% { opacity: 1; }
    100% { left: 125%; opacity: 0; }
}
@keyframes adminCardEnter {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes adminStatusPulse {
    0%, 100% { opacity: .65; transform: scale(.85); }
    50% { opacity: 1; transform: scale(1.18); }
}
@keyframes adminNewsLift {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(-2px); }
}
@keyframes adminBookLeft {
    0%, 100% { transform: perspective(40px) rotateY(0); }
    50% { transform: perspective(40px) rotateY(-10deg); }
}
@keyframes adminBookRight {
    0%, 100% { transform: perspective(40px) rotateY(0); }
    50% { transform: perspective(40px) rotateY(10deg); }
}
@keyframes adminServerSignal {
    0%, 100% { opacity: .55; transform: scale(.75); }
    50% { opacity: 1; transform: scale(1.3); }
}
@keyframes adminDownload {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(3px); }
}
@keyframes adminRipple {
    0% { opacity: .65; transform: scale(0); }
    100% { opacity: 0; transform: scale(18); }
}
@keyframes adminAlertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .admin__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-card { min-height: 300px; }
}
@media (max-width: 760px) {
    .admin { flex-direction: column; }
    .admin__side {
        position: sticky;
        top: 0;
        z-index: 80;
        width: 100%;
        height: auto;
        padding: .7rem .85rem;
        flex-direction: row;
        align-items: center;
        gap: .7rem;
        border-right: 0;
        border-bottom: 1px solid rgba(var(--color-accent, 218, 170, 86), .16);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
    }
    .admin__logo { flex: 0 0 auto; padding: .15rem; }
    .admin__logo img { width: 42px; height: 34px; object-fit: contain; }
    .admin__nav { flex: 1; flex-direction: row; gap: .25rem; overflow-x: auto; scrollbar-width: thin; }
    .admin__nav a { flex: 0 0 auto; padding: .58rem .7rem; white-space: nowrap; font-size: .68rem; }
    .admin__nav a:hover { transform: none; }
    .admin__logout { flex: 0 0 auto; margin: 0; }
    .admin__logout .ui-btn { width: auto; min-height: 38px; padding: .55rem .75rem; font-size: .7rem; }
    .admin__main { padding: 1.4rem 1rem 2.5rem; }
    .admin-dashboard__head { align-items: flex-start; }
    .admin-table { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
    .admin-dashboard__head { flex-direction: column; gap: 1rem; }
    .admin-dashboard__summary { align-self: flex-start; }
    .admin__cards { grid-template-columns: 1fr; }
    .admin-card { min-height: 280px; }
    .admin-form { padding: 1.1rem; border-radius: 13px; }
    .admin-form__actions { align-items: stretch; flex-direction: column; }
    .admin-form__actions .ui-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .admin *,
    .admin *::before,
    .admin *::after,
    .admin-skip {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .admin-card:hover,
    .admin-card:focus-visible,
    .admin__nav a:hover,
    .admin .ui-btn:hover,
    .admin-tabs__item:hover,
    .admin-stat:hover,
    .admin-panel:hover { transform: none; }
    .admin-ripple { display: none; }
}

/* Кнопка «Наверх» под логотипом в навигации.
   Только шеврон, без подписи: место под логотипом узкое, а слово «Наверх»
   рядом со стрелкой ничего не добавляет — смысл читается по самой стрелке. */
.nav-top {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin: .4rem auto 0; padding: 0;
    color: rgba(var(--color-light, 232, 209, 166), .72);
    background: rgba(var(--color-dark, 0, 0, 0), .28);
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .34);
    border-radius: 50%; cursor: pointer;
    /* Внутренний блик: круг выглядит выпуклым, а не наклейкой. */
    box-shadow: inset 0 1px 0 rgba(var(--color-light, 232, 209, 166), .1);
}
.nav-top:hover {
    color: rgb(var(--color-accent, 218, 170, 86));
    border-color: rgb(var(--color-accent, 218, 170, 86));
    background: rgba(var(--color-accent, 218, 170, 86), .14);
    /* Подъём на пиксель — тот же язык, что у остальных кнопок темы. */
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(var(--color-light, 232, 209, 166), .12),
                0 4px 12px rgba(var(--color-accent, 218, 170, 86), .18);
}
.nav-top:active { transform: translateY(0); }
.nav-top:focus-visible {
    outline: 2px solid rgba(var(--color-accent, 218, 170, 86), .7);
    outline-offset: 2px;
}
.nav-top__ico {
    width: 15px; height: 15px; display: block;
    fill: none; stroke: currentColor; stroke-width: 2.1;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
/* Шеврон подпрыгивает под курсором — подсказка про направление. */
.nav-top:hover .nav-top__ico { transform: translateY(-1.5px); }
/* На самом верху (слайд #home) кнопка не нужна */
.nav-top.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.nav-top {
    transition: color .15s ease, border-color .15s ease, background .15s ease,
                box-shadow .18s ease, transform .18s ease, opacity .2s ease;
}
.navigation__logobox { display: flex; flex-direction: column; align-items: center; }

/* Красный счётчик непрочитанного на кнопке «Поддержка».
   Кружок висит на углу кнопки, а не в её потоке: иначе подпись съезжала бы при
   появлении числа, а кнопка меняла ширину на каждом такте опроса. */
.btn__dot {
    position: absolute; top: -7px; right: -9px; z-index: 2;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box;
    font: 700 11px/1 var(--font-2, "intro", Arial, sans-serif); letter-spacing: .02em;
    color: #fff; background: #d93025;
    border: 1.5px solid rgba(255, 255, 255, .92); border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .38);
    /* Цифра приходит рывком — маленький подскок сообщает, что она новая. */
    animation: btn-dot-in .34s cubic-bezier(.34, 1.56, .64, 1);
}
.btn__dot[hidden] { display: none; }
/* Кнопки темы позиционируются статично: без relative кружок ушёл бы к краю окна. */
.hero__btns .btn { position: relative; }

@keyframes btn-dot-in {
    from { transform: scale(.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .btn__dot { animation: none; }
}

/* ===================== Пополнение (/donate) ===================== */
.body_donate { background: rgb(var(--body-background-color, 15, 14, 13)); }

.dnt-top {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 1180px; margin: 0 auto; padding: 1.25rem 1.25rem 0;
}
.dnt-top__logo img { height: 46px; display: block; }
.dnt-top__nav { display: flex; gap: 1.25rem; font-size: .9rem; }
.dnt-top__nav a { color: rgba(var(--color-light, 232, 209, 166), .75); }
.dnt-top__nav a:hover { color: rgb(var(--color-accent, 218, 170, 86)); }

.dnt-wrap { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.dnt-title {
    font-family: var(--font-1, "Trajan Pro 3", serif);
    color: rgb(var(--color-accent, 218, 170, 86));
    font-size: 1.9rem; margin: .6rem 0 .4rem;
}
.dnt-lead { margin: 0 0 1.6rem; max-width: 62ch; line-height: 1.6; opacity: .8; }
.dnt-hint { margin: .6rem 0 0; font-size: .82rem; line-height: 1.5; opacity: .62; }

.dnt-step[hidden] { display: none; }
.dnt-step { display: block; }

.dnt { display: flex; flex-direction: column; gap: .2rem; }
.dnt__err {
    margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 6px; font-size: .86rem;
    color: rgb(var(--color-red, 236, 25, 25));
    background: rgba(var(--color-red, 236, 25, 25), .08);
    border: 1px solid rgba(var(--color-red, 236, 25, 25), .35);
}
.dnt-load { padding: 1.2rem 0; text-align: center; font-size: .88rem; opacity: .6; }
.dnt-out {
    display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
    margin: 1rem 0; padding: .7rem .9rem; border-radius: 8px;
    background: rgba(var(--color-accent, 218, 170, 86), .08);
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .3);
    font-size: .85rem;
}
.dnt-out strong {
    font-family: var(--font-2, "intro", sans-serif); font-size: 1.35rem;
    color: rgb(var(--color-accent, 218, 170, 86));
}
.dnt-out__rub { margin-left: auto; font-style: normal; font-size: .8rem; opacity: .6; }
.dnt-rules {
    max-height: 220px; overflow-y: auto; margin: .6rem 0 1rem;
    padding: .8rem .9rem; border-radius: 8px; font-size: .84rem; line-height: 1.6;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1);
}
.dnt-rules p { margin: 0 0 .6rem; }
.dnt-rules :last-child { margin-bottom: 0; }

.dnt-gen { padding: 1.4rem 0 .6rem; text-align: center; }
.dnt-gen__ring { position: relative; width: 74px; height: 74px; margin: 0 auto 1.1rem; }
.dnt-gen__ring span {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgb(var(--color-accent, 218, 170, 86));
    animation: dnt-spin 1.1s linear infinite;
}
.dnt-gen__ring span:nth-child(2) { inset: 10px; animation-duration: 1.6s; animation-direction: reverse; opacity: .7; }
.dnt-gen__ring span:nth-child(3) { inset: 20px; animation-duration: 2.2s; opacity: .45; }
@keyframes dnt-spin { to { transform: rotate(360deg); } }
.dnt-gen__title {
    margin: 0 0 .35rem; font-family: var(--font-2, "intro", sans-serif);
    font-size: 1rem; color: rgb(var(--color-accent, 218, 170, 86));
}
.dnt-gen__stage { margin: 0 0 1rem; font-size: .86rem; opacity: .75; min-height: 1.2em; }
.dnt-gen__bar {
    height: 4px; border-radius: 2px; overflow: hidden;
    background: rgba(255, 255, 255, .1);
}
.dnt-gen__bar i {
    display: block; height: 100%; width: 0;
    background: rgb(var(--color-accent, 218, 170, 86));
    transition: width .2s linear;
}

.dnt-req { margin-bottom: 1rem; }
.dnt-req__row {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .45rem 0; font-size: .88rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.dnt-req__row span { opacity: .6; }
.dnt-req__box {
    margin-top: .9rem; padding: .8rem .9rem; border-radius: 8px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .3);
}
.dnt-req__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.dnt-req__box pre {
    margin: .5rem 0 .8rem; font-family: Consolas, "Courier New", monospace;
    font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-all;
    color: rgb(var(--color-light, 232, 209, 166));
}
.dnt-req__box .ui-btn { width: auto; padding: .4rem .9rem; font-size: .78rem; }
.dnt-crypto-pay {
    display: flex; flex-direction: column; align-items: center; gap: .65rem;
    margin: 1rem 0;
}
.dnt-crypto-pay[hidden] { display: none; }
.dnt-crypto-pay__qr {
    display: flex; align-items: center; justify-content: center;
    width: min(276px, 100%); aspect-ratio: 1; padding: 18px;
    margin: 0 auto; box-sizing: border-box; border-radius: 14px;
    background: #fff; border: 1px solid rgba(var(--color-accent, 218, 170, 86), .75);
    box-shadow: 0 0 0 5px rgba(var(--color-accent, 218, 170, 86), .12), 0 12px 30px rgba(0, 0, 0, .24);
}
.dnt-crypto-pay__qr img {
    display: block; width: 240px; height: 240px; max-width: 100%;
    object-fit: contain;
}
.dnt-file { margin: .4rem 0 0; font-size: .82rem; opacity: .7; }

.dnt-done { padding: .6rem 0; text-align: center; }
.dnt-done__mark {
    width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    color: #8ce39a; border: 2px solid rgba(140, 227, 154, .5);
    background: rgba(140, 227, 154, .1);
}
.dnt-done__title {
    margin: 0 0 .6rem; font-family: var(--font-2, "intro", sans-serif);
    font-size: 1.05rem; color: rgb(var(--color-accent, 218, 170, 86));
}
.dnt-done p { line-height: 1.6; }
.dnt .ui-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.dnt-order { max-width: 720px; }
.dnt-status {
    display: inline-block; margin: 0 0 1.2rem; padding: .5rem .9rem;
    border-radius: 6px; font-family: var(--font-2, "intro", sans-serif); font-size: .9rem;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .35);
}
.dnt-status_ok { color: #8ce39a; border-color: rgba(140, 227, 154, .45); }
.dnt-status_work { color: rgb(var(--color-accent, 218, 170, 86)); border-color: rgba(var(--color-accent, 218, 170, 86), .45); }
.dnt-status_wait { color: rgb(var(--color-light, 232, 209, 166)); }
.dnt-status_bad { color: rgb(var(--color-red, 236, 25, 25)); border-color: rgba(var(--color-red, 236, 25, 25), .45); }

.dnt-order__rows {
    margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .16);
    border-radius: 10px; padding: 1rem 1.2rem;
}
.dnt-order__rows > div { display: flex; justify-content: space-between; gap: 1rem; }
.dnt-order__rows dt { opacity: .6; }
.dnt-order__rows dd { margin: 0; text-align: right; }
.dnt-order__bonus { color: #8ce39a; font-size: .82rem; }
.dnt-order__act {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px; padding: 1.1rem 1.2rem 1.2rem; line-height: 1.6;
}
.dnt-order__act-title {
    margin: 0 0 .6rem; font-family: var(--font-2, "intro", sans-serif);
    font-size: .95rem; text-transform: uppercase; letter-spacing: .06em;
    color: rgb(var(--color-accent, 218, 170, 86));
}
.dnt-order__steps { margin: 0; padding-left: 1.2rem; }
.dnt-order__steps li { margin-bottom: .4rem; }
.dnt-order__links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.dnt-order__links .ui-btn { width: auto; }
.dnt-order__foot { margin-top: 1.4rem; }

.dnt-foot {
    display: flex; align-items: center; justify-content: center; gap: .8rem;
    padding: 1.5rem 1.25rem 2.5rem; font-size: .82rem; opacity: .55;
}
.dnt-foot__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* Компактная форма внутри ячейки таблицы админки */
.admin-inline { display: flex; align-items: center; gap: .35rem; }
.admin__subtitle {
    margin: 1.8rem 0 .6rem; font-family: var(--font-2, "intro", sans-serif);
    font-size: .95rem; text-transform: uppercase; letter-spacing: .06em;
    color: rgb(var(--color-accent, 218, 170, 86));
}
.admin-box {
    margin: 0 0 1rem; padding: 1rem 1.1rem; border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .09);
}
.admin-cols {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .6rem 1rem; align-items: end;
}
.admin-cols .auth-field, .admin-cols .auth-check { margin: 0; }
/* Четыре узких поля в строку: числовые пределы вложений. */
.admin-cols_4 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

/* Кнопка «+» под таблицами настроек */
.admin-add {
    display: inline-flex; align-items: center; gap: .45rem;
    margin: .2rem 0 1.4rem; padding: .45rem .9rem;
    font-family: var(--font-2, "intro", sans-serif); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .06em;
    color: rgb(var(--color-accent, 218, 170, 86));
    background: rgba(var(--color-accent, 218, 170, 86), .08);
    border: 1px dashed rgba(var(--color-accent, 218, 170, 86), .5);
    border-radius: 6px; cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.admin-add:hover {
    background: rgba(var(--color-accent, 218, 170, 86), .16);
    border-color: rgb(var(--color-accent, 218, 170, 86));
}
.admin-add span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; font-size: 1rem; line-height: 1;
    background: rgba(var(--color-accent, 218, 170, 86), .2);
}

/* Компактная таблица валют */
.admin-cur td { vertical-align: middle; }
.admin-cur input[type="text"], .admin-cur select, .admin-cur textarea {
    width: 100%; min-width: 70px; padding: .3rem .45rem; font-size: .84rem;
    background: rgba(0, 0, 0, .35); color: inherit; font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 5px;
}
.admin-cur textarea { min-width: 200px; resize: vertical; }
.admin-cur__on { text-align: center; }
.admin-inline input[type="number"] {
    padding: .32rem .45rem; border-radius: 6px;
    background: rgba(0, 0, 0, .35); color: inherit;
    border: 1px solid rgba(255, 255, 255, .14); font: inherit; font-size: .85rem;
}

/* Сводка платежей */
.pay-sum { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.pay-sum a, .pay-sum span {
    padding: .35rem .7rem; border-radius: 6px; font-size: .84rem;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
    color: rgb(var(--color-light, 232, 209, 166));
}
.pay-sum a.is-active { border-color: rgb(var(--color-accent, 218, 170, 86)); color: rgb(var(--color-accent, 218, 170, 86)); }
.pay-st { font-size: .82rem; white-space: nowrap; }
.pay-st_new, .pay-st_awaiting { color: rgb(var(--color-accent, 218, 170, 86)); }
.pay-st_review { color: #ffb347; }
.pay-st_paid, .pay-st_crediting { color: #6fa8ff; }
.pay-st_credited { color: #8ce39a; }
.pay-st_canceled, .pay-st_expired { color: #b3b3b3; }
.pay-acts { display: flex; gap: .35rem; flex-wrap: wrap; }
.pay-acts .ui-btn { width: auto; padding: .35rem .7rem; font-size: .78rem; }

@media (max-width: 900px) {
    .dnt-wrap { padding: 1.2rem 1rem 2.5rem; }
    .dnt-title { font-size: 1.55rem; }
}

/* Раздел «Крипта»: сводка, сети, статусы */
.crypto-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .5rem;
    margin: .8rem 0 1.1rem;
}
.crypto-stat {
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-left-width: 3px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .25);
}
.crypto-stat__n { display: block; font-size: 1.25rem; line-height: 1.2; color: rgb(var(--color-accent, 218, 170, 86)); }
.crypto-stat__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; opacity: .6; }
.crypto-stat_ok { border-left-color: #79c76a; }
.crypto-stat_ok .crypto-stat__n { color: #79c76a; }
.crypto-stat_seen { border-left-color: #7fb2f0; }
.crypto-stat_seen .crypto-stat__n { color: #7fb2f0; }
.crypto-stat_wait { border-left-color: #d8a13a; }
.crypto-stat_wait .crypto-stat__n { color: #d8a13a; }
.crypto-stat_bad { border-left-color: #e0473c; }
.crypto-stat_bad .crypto-stat__n { color: #e0473c; }
.crypto-stat_dim { border-left-color: rgba(255, 255, 255, .2); }
.crypto-stat_dim .crypto-stat__n { color: #8a93a6; }

.crypto-chains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .5rem;
    margin-bottom: 1.2rem;
}
.crypto-chain {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    background: rgba(0, 0, 0, .22);
}
.crypto-chain__name { font-size: .92rem; }
.crypto-chain__meta { font-size: .76rem; opacity: .65; margin-top: .15rem; }
.crypto-ico { width: 26px; height: 26px; flex: 0 0 26px; }
.crypto-ico path { fill: currentColor; }
.crypto-ico_tron { color: #eb2f3a; }
.crypto-ico_evm { color: #8ea2f4; }
.crypto-ico_btc { color: #f5a623; }

.crypto-badge {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 10px;
    font-size: .74rem;
    border: 1px solid currentColor;
    white-space: nowrap;
}
.crypto-badge_ok { color: #79c76a; }
.crypto-badge_seen { color: #7fb2f0; }
.crypto-badge_wait { color: #d8a13a; }
.crypto-badge_bad { color: #e0473c; }
.crypto-badge_dim { color: #8a93a6; }
.crypto-mono { font-family: Consolas, monospace; font-size: .8rem; }
.crypto-tx {
    font-family: Consolas, monospace; font-size: .78rem;
    color: rgb(var(--color-accent, 218, 170, 86)); text-decoration: none;
    border-bottom: 1px dotted currentColor; white-space: nowrap;
}
.crypto-tx:hover { border-bottom-style: solid; }
.crypto-link { font-size: .7rem; color: rgb(var(--color-accent, 218, 170, 86)); text-decoration: none; }
.crypto-link:hover { text-decoration: underline; }

/* Кошельки под валюты: карточка на валюту — адрес и контракт видны целиком */
.crypto-wallets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: .6rem;
    margin: .6rem 0 1.2rem;
}
.crypto-wallet {
    padding: .7rem .8rem .8rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-left: 3px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    background: rgba(0, 0, 0, .24);
}
.crypto-wallet_on { border-left-color: #79c76a; }
.crypto-wallet_off { border-left-color: #d8a13a; opacity: .82; }
.crypto-wallet__head {
    display: flex; align-items: center; gap: .5rem; min-width: 0;
    margin-bottom: .6rem; padding-bottom: .55rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.crypto-wallet__on {
    display: flex; align-items: center; gap: .3rem; margin-left: auto;
    flex: 0 0 auto; font-size: .72rem; cursor: pointer; white-space: nowrap;
    text-transform: uppercase; letter-spacing: .04em; opacity: .75;
}
.crypto-wallet__on input { width: 14px; height: 14px; accent-color: rgb(var(--color-accent, 218, 170, 86)); }
.crypto-wallet__on:hover { opacity: 1; }
.crypto-wallet__name {
    font-size: .95rem; color: rgb(var(--color-accent, 218, 170, 86));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crypto-wallet__sym { font-size: .8rem; opacity: .45; }
.crypto-wallet__head .crypto-badge { margin-left: auto; flex: 0 0 auto; }
.crypto-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.crypto-grid label { display: flex; flex-direction: column; gap: .22rem; min-width: 0; grid-column: span 6; }
.crypto-grid label > span {
    display: flex; align-items: baseline; gap: .35rem;
    font-size: .69rem; text-transform: uppercase; letter-spacing: .04em; opacity: .6;
}
.crypto-grid input, .crypto-grid select {
    width: 100%; min-width: 0; padding: .36rem .48rem; font-size: .84rem;
    background: rgba(0, 0, 0, .42); color: inherit; font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 5px;
}
.crypto-grid input.crypto-mono { font-family: Consolas, monospace; letter-spacing: .01em; }
.crypto-grid input:focus, .crypto-grid select:focus {
    outline: none; border-color: rgb(var(--color-accent, 218, 170, 86));
    background: rgba(0, 0, 0, .55);
}
/* Модификаторы вложены в контейнер: селектор из двух классов перебивает
   базовое `.crypto-grid label`, иначе поле остаётся во всю ширину карточки. */
.crypto-grid .crypto-grid__half { grid-column: span 3; }
.crypto-grid .crypto-grid__third { grid-column: span 2; }

/* Крипто-детали в строке платежа */
.pay-crypto { margin-top: .3rem; font-size: .75rem; line-height: 1.55; }
.pay-crypto__k { opacity: .5; }
.pay-crypto .crypto-mono { font-size: .75rem; }
.admin-table code { white-space: nowrap; }

/* Подзаголовок hero («Blood and Soul») — по центру относительно заголовка.
   Тема прижимает содержимое .heading влево; блок и так сжат по ширине самого
   широкого потомка (заголовка), поэтому центрирования внутри достаточно. */
.hero__heading { align-items: center; text-align: center; }

/* ==========================================================================
   Тикеты поддержки: модалка игрока (.tk-*) и панель ответов (.stf-*).
   Переписка в обоих местах одна и та же разметка — стили сообщений общие.
   ========================================================================== */

/* Круглая аватарка как в ВК/ТГ. Показывается только в переписке, поэтому
   размер компактный. max-width сбрасываем намеренно: правило
   .ui-modal__body img ужимает любые картинки модалки до 24px. */
.tk-ava {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
    background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}
.tk-ava img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 50%; }
.tk-ava_sm { width: 24px; height: 24px; }

.tk { display: flex; flex-direction: column; gap: .75rem; }
.tk-step[hidden] { display: none; }
.tk-step { display: block; }
.tk__err {
    padding: .6rem .8rem; border-radius: 6px; font-size: .85rem; line-height: 1.45;
    background: rgba(var(--color-red, 236, 25, 25), .14);
    border: 1px solid rgba(var(--color-red, 236, 25, 25), .45);
}
.tk__ok {
    padding: .6rem .8rem; border-radius: 6px; font-size: .85rem; line-height: 1.45;
    background: rgba(63, 191, 95, .13); border: 1px solid rgba(63, 191, 95, .42);
}
.tk-hint { margin: .5rem 0 0; font-size: .8rem; line-height: 1.5; opacity: .6; }
.tk-load { padding: 1.1rem 0; text-align: center; font-size: .88rem; opacity: .65; }
.tk-lead { margin: 0 0 .9rem; font-size: .88rem; line-height: 1.55; opacity: .82; }

/* Переключатель «Мои обращения / Новое обращение» */
.tk-tabs {
    display: flex; gap: .35rem; padding: .25rem;
    border: 1px solid rgba(255, 255, 255, .09); border-radius: 9px; background: rgba(0, 0, 0, .25);
}
.tk-tabs__btn {
    flex: 1 1 0; padding: .5rem .7rem; border: 0; border-radius: 7px; cursor: pointer;
    font-family: inherit; font-size: .84rem; letter-spacing: .02em;
    color: rgba(var(--color-light, 232, 209, 166), .72); background: transparent;
    transition: background .15s ease, color .15s ease;
}
.tk-tabs__btn:hover { color: rgb(var(--color-light, 232, 209, 166)); background: rgba(255, 255, 255, .05); }
.tk-tabs__btn.is-active {
    color: #1a140a; background: linear-gradient(180deg, #e7c877 0%, #daaa56 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.tk-tabs__n {
    display: inline-block; min-width: 18px; margin-left: .35rem; padding: 0 .3rem;
    border-radius: 9px; font-size: .72rem; background: rgba(0, 0, 0, .22);
}

/* Строка с вкладками и кнопкой «+» */
.tk-bar { display: flex; align-items: stretch; gap: .45rem; }
.tk-bar .tk-tabs { flex: 1 1 auto; min-width: 0; }
.tk-add {
    flex: 0 0 auto; width: 44px; border-radius: 9px; cursor: pointer;
    font-family: inherit; font-size: 1.5rem; line-height: 1; color: #1a140a;
    background: linear-gradient(180deg, #e7c877 0%, #daaa56 55%, #c6913b 100%);
    border: 1px solid #b07f2f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: filter .15s ease, transform .1s ease;
}
.tk-add:hover { filter: brightness(1.08); }
.tk-add:active { transform: translateY(1px); }

/* Экран входа */
.tk-gate { text-align: center; padding: .6rem 0 0; }
.tk-gate .tk-form { max-width: 360px; margin: 0 auto; text-align: left; }
.tk-who {
    display: flex; align-items: center; gap: .5rem; margin: .9rem 0 0;
    padding-top: .7rem; border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .78rem; opacity: .6;
}
.tk-who b { font-weight: 500; opacity: .9; }
.tk-who .tk-back { margin-left: auto; }
.tk-limit {
    padding: .7rem .85rem; margin: 0 0 .3rem; border-radius: 9px; font-size: .85rem; line-height: 1.5;
    border: 1px solid rgba(224, 163, 92, .45); background: rgba(224, 163, 92, .1);
}
.tk-head_nav { padding-bottom: .35rem; border-bottom: 0; }

/* Чипсы вместо выпадающего списка: отдел обращения */
.tk-pickers { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.tk-picker { display: flex; flex-direction: column; gap: .35rem; }
.tk-picker__label { font-size: .82rem; opacity: .8; }
.tk-picker__hint { font-size: .76rem; line-height: 1.4; opacity: .5; min-height: 1.1em; }
.tk-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.tk-chip {
    padding: .4rem .75rem; border-radius: 20px; cursor: pointer; font-family: inherit; font-size: .82rem;
    color: rgba(var(--color-light, 232, 209, 166), .82); background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .13);
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.tk-chip:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .55); color: rgb(var(--color-light, 232, 209, 166)); }
.tk-chip.is-on {
    color: #1a140a; border-color: #b07f2f;
    background: linear-gradient(180deg, #e7c877 0%, #daaa56 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* Прикрепление файлов */
.tk-files { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tk-files__btn {
    flex: 0 0 auto; padding: .45rem .8rem; border-radius: 8px; cursor: pointer; font-family: inherit;
    font-size: .82rem; color: rgb(var(--color-accent, 218, 170, 86)); background: transparent;
    border: 1px dashed rgba(var(--color-accent, 218, 170, 86), .5);
}
.tk-files__btn:hover { background: rgba(var(--color-accent, 218, 170, 86), .1); }
.tk-files__hint { flex: 1 1 160px; min-width: 0; font-size: .74rem; line-height: 1.4; opacity: .5; }
.tk-files__list { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.tk-file {
    display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem .35rem .6rem;
    border-radius: 7px; font-size: .8rem;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .26);
}
.tk-file__name { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-file__size { flex: 0 0 auto; font-size: .74rem; opacity: .5; }
.tk-file__x {
    flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    font-size: 1rem; line-height: 1; color: rgb(var(--color-red, 236, 25, 25)); background: transparent;
}
.tk-file__x:hover { background: rgba(var(--color-red, 236, 25, 25), .15); }

/* Вложения в переписке */
.tk-msg__files { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.tk-shot {
    display: block; width: 104px; height: 78px; border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .3);
}
.tk-shot img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.tk-shot:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .6); }
.tk-doc {
    display: flex; align-items: baseline; gap: .45rem; padding: .35rem .6rem; border-radius: 7px;
    font-size: .78rem; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .3);
}
.tk-doc:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .6); }
.tk-doc__name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-doc__size { font-size: .72rem; opacity: .5; }

@media (min-width: 620px) {
    .tk-pickers { grid-template-columns: 1fr 1fr; gap: .9rem; }
}
/* Список обращений */
.tk-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .2rem; }
.tk-card {
    display: block; width: 100%; padding: .7rem .85rem; text-align: left; cursor: pointer;
    font-family: inherit; color: inherit; border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .09); border-left: 3px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .24);
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.tk-card:hover { background: rgba(0, 0, 0, .36); transform: translateX(2px); }
.tk-card_new { border-left-color: rgb(var(--color-accent, 218, 170, 86)); }
.tk-card_rate { border-left-color: #79c76a; }
.tk-card__head { display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.tk-card__num { flex: 0 0 auto; font-family: Consolas, monospace; font-size: .8rem; opacity: .55; }
.tk-card__subject {
    min-width: 0; flex: 1 1 auto; font-size: .95rem; color: rgb(var(--color-light, 232, 209, 166));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tk-card__meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    margin-top: .45rem; font-size: .76rem; opacity: .62;
}
.tk-card__meta b { font-weight: 600; opacity: .85; }

/* Бейдж статуса: один набор цветов на модалку, панель и админку */
.tk-badge {
    display: inline-flex; align-items: center; gap: .32rem; flex: 0 0 auto;
    padding: .17rem .5rem; border-radius: 20px; font-size: .72rem; letter-spacing: .02em;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
}
.tk-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tk-badge_open { color: #e7c877; border-color: rgba(231, 200, 119, .45); background: rgba(231, 200, 119, .12); }
.tk-badge_read { color: #9fb6d8; border-color: rgba(159, 182, 216, .42); background: rgba(159, 182, 216, .1); }
.tk-badge_answered { color: #79c76a; border-color: rgba(121, 199, 106, .45); background: rgba(121, 199, 106, .12); }
.tk-badge_waiting { color: #e0a35c; border-color: rgba(224, 163, 92, .45); background: rgba(224, 163, 92, .12); }
.tk-badge_closed { color: #9a9a9a; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }

.tk-pin {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    min-width: 18px; height: 18px; padding: 0 .3rem; border-radius: 9px;
    font-size: .7rem; font-weight: 700; color: #1a140a;
    background: rgb(var(--color-accent, 218, 170, 86));
}
.tk-empty {
    padding: 1.6rem .8rem; text-align: center; font-size: .88rem; line-height: 1.6; opacity: .65;
    border: 1px dashed rgba(255, 255, 255, .14); border-radius: 10px;
}
/* Ввод кода из письма */
.tk-code { padding: .4rem 0 0; text-align: center; }
.tk-code__mail {
    display: inline-flex; align-items: center; gap: .4rem; margin: 0 auto .9rem; padding: .35rem .7rem;
    border-radius: 20px; font-family: Consolas, monospace; font-size: .84rem;
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .35); background: rgba(0, 0, 0, .28);
}
.tk-code__input {
    display: block; width: 100%; max-width: 260px; margin: 0 auto .8rem; padding: .7rem .5rem;
    text-align: center; font-family: Consolas, monospace; font-size: 1.6rem; letter-spacing: .5rem;
    color: rgb(var(--color-accent, 218, 170, 86)); background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px;
}
.tk-code__input:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); background: rgba(0, 0, 0, .55); }
.tk-code__resend {
    margin: .7rem 0 0; font-size: .82rem; background: transparent; border: 0; cursor: pointer;
    font-family: inherit; color: rgb(var(--color-url, 218, 170, 86)); text-decoration: underline;
}
.tk-code__resend[disabled] { cursor: default; text-decoration: none; opacity: .5; }

/* Переписка */
.tk-thread {
    display: flex; flex-direction: column; gap: .7rem; max-height: 46vh; overflow-y: auto;
    padding: .2rem .3rem .2rem 0; margin: .2rem 0 .9rem;
    /* Своя логика прокрутки (см. paintThread/keepBottom): автоякорь браузера
       подкручивал вид при догрузке картинок и оставлял его не у конца. */
    overflow-anchor: none;
}
.tk-msg { display: flex; gap: .6rem; align-items: flex-start; }
.tk-msg_player { flex-direction: row-reverse; }
.tk-msg__box {
    min-width: 0; max-width: 82%; padding: .55rem .8rem .6rem; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .09); background: rgba(0, 0, 0, .3);
}
.tk-msg_player .tk-msg__box {
    border-color: rgba(var(--color-accent, 218, 170, 86), .3);
    background: rgba(var(--color-accent, 218, 170, 86), .09);
}
.tk-msg_agent .tk-msg__box { border-color: rgba(121, 199, 106, .26); background: rgba(121, 199, 106, .07); }
.tk-msg_system { justify-content: center; }
.tk-msg_system .tk-msg__box {
    max-width: 100%; text-align: center; font-size: .8rem; opacity: .78;
    border-style: dashed; background: rgba(255, 255, 255, .03);
}
.tk-msg__head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.tk-msg__name { font-size: .8rem; color: rgb(var(--color-accent, 218, 170, 86)); }
.tk-msg_agent .tk-msg__name { color: #8fd382; }
.tk-msg__time { font-size: .72rem; opacity: .45; }
.tk-msg__body { font-size: .88rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
/* Шапка открытого тикета */
.tk-head {
    display: flex; align-items: flex-start; gap: .7rem; padding-bottom: .7rem; margin-bottom: .2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.tk-head__body { min-width: 0; flex: 1 1 auto; }
.tk-head__subject { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.3; word-break: break-word; }
.tk-head__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .75rem; opacity: .62; }
.tk-back {
    align-self: flex-start; padding: 0; border: 0; background: transparent; cursor: pointer;
    font-family: inherit; font-size: .8rem; color: rgb(var(--color-url, 218, 170, 86));
}
.tk-back:hover { text-decoration: underline; }

/* Ответ игрока и администратора: одна форма на оба экрана.
   [hidden] прописан явно: display:flex иначе перебивает атрибут, и поле
   ответа осталось бы видимым в закрытом обращении. */
.tk-reply { display: flex; flex-direction: column; gap: .5rem; }
.tk-reply[hidden] { display: none; }
.tk-reply textarea {
    width: 100%; min-height: 96px; padding: .6rem .7rem; resize: vertical;
    font-family: inherit; font-size: .88rem; line-height: 1.5;
    color: rgb(var(--color-light, 232, 209, 166)); background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px;
}
.tk-reply textarea:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); background: rgba(0, 0, 0, .55); }
/* Пауза между сообщениями: поле не исчезает, но и печатать в него нельзя —
   игрок видит, что писать можно, просто позже. */
.tk-reply textarea:disabled { opacity: .5; cursor: not-allowed; }
.tk-reply__foot { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.tk-reply__foot .ui-btn { width: auto; flex: 0 0 auto; }
.tk-count { margin-left: auto; font-size: .74rem; opacity: .45; font-variant-numeric: tabular-nums; }
.tk-count.is-over { color: rgb(var(--color-red, 236, 25, 25)); opacity: .9; }
/* Обратный отсчёт паузы стоит перед счётчиком символов: тот прижат вправо
   через margin-left:auto, поэтому подсказка остаётся рядом с кнопкой. */
.tk-wait { font-size: .74rem; color: rgb(var(--color-accent, 218, 170, 86)); opacity: .8; font-variant-numeric: tabular-nums; }
.tk-wait[hidden] { display: none; }

/* Оценка ответа: 1..5 звёзд */
.tk-rate {
    padding: .8rem .9rem; margin: 0 0 .9rem; border-radius: 10px;
    border: 1px solid rgba(121, 199, 106, .3); background: rgba(121, 199, 106, .07);
}
.tk-rate__title { margin: 0 0 .55rem; font-size: .9rem; color: #8fd382; }
.tk-stars { display: flex; gap: .2rem; margin-bottom: .6rem; }
.tk-star {
    width: 34px; height: 34px; padding: 0; border: 0; cursor: pointer; background: transparent;
    font-size: 1.6rem; line-height: 1; color: rgba(255, 255, 255, .22);
    transition: color .12s ease, transform .12s ease;
}
.tk-star:hover { transform: scale(1.14); }
.tk-star.is-on { color: #e7c877; }
.tk-stars_static .tk-star { cursor: default; width: 20px; height: 20px; font-size: 1rem; }
.tk-stars_static .tk-star:hover { transform: none; }
/* Тикет создан: номер и ссылка, по которой к нему вернутся */
.tk-done { padding: .6rem 0 .2rem; text-align: center; }
.tk-done__mark {
    width: 62px; height: 62px; margin: 0 auto .9rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem; line-height: 1;
    color: #3fbf5f; background: rgba(63, 191, 95, .12);
    border: 1.5px solid rgba(63, 191, 95, .5); box-shadow: 0 0 24px rgba(63, 191, 95, .25);
}
.tk-done__num {
    display: inline-block; margin: 0 0 .7rem; padding: .3rem .9rem; border-radius: 8px;
    font-family: Consolas, monospace; font-size: 1.4rem; letter-spacing: .04em;
    color: rgb(var(--color-accent, 218, 170, 86));
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .4); background: rgba(0, 0, 0, .3);
}
.tk-done__link {
    display: flex; align-items: center; gap: .5rem; margin: .9rem 0 0; padding: .55rem .7rem;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .3);
}
.tk-done__link input {
    flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: transparent;
    font-family: Consolas, monospace; font-size: .78rem; color: rgba(var(--color-light, 232, 209, 166), .8);
}
.tk-done__link input:focus { outline: none; }
.tk-done .tk-reply__foot { justify-content: center; margin-top: 1rem; }
.tk-done__link button {
    flex: 0 0 auto; padding: .25rem .6rem; border-radius: 6px; cursor: pointer; font-family: inherit;
    font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
    color: rgb(var(--color-accent, 218, 170, 86)); background: transparent;
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .45);
}
.tk-done__link button:hover { background: rgba(var(--color-accent, 218, 170, 86), .12); }

.tk-form { display: flex; flex-direction: column; gap: .55rem; }
.tk-form .auth-field span b { color: rgb(var(--color-accent, 218, 170, 86)); font-weight: 400; }
.tk-form textarea {
    width: 100%; min-height: 130px; padding: .6rem .7rem; resize: vertical;
    font-family: inherit; font-size: .88rem; line-height: 1.5;
    color: rgb(var(--color-light, 232, 209, 166)); background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px;
}
.tk-form textarea:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); background: rgba(0, 0, 0, .55); }
.tk-form select {
    padding: .55rem .6rem; font-family: inherit; font-size: .88rem;
    color: rgb(var(--color-light, 232, 209, 166)); background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px;
}
.tk-form select:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); }
@media (max-width: 560px) {
    .tk-msg__box { max-width: 100%; }
    .tk-thread { max-height: 40vh; }
}
/* --- Панель тикетов (/support/staff): отдельный вход по токену --- */
.body_staff { display: block; }
.stf-top {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem;
    background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(var(--color-accent, 218, 170, 86), .22);
}
.stf-top__logo img { height: 34px; display: block; }
.stf-top__title {
    font-family: var(--font-2, "intro", sans-serif); font-size: .82rem;
    text-transform: uppercase; letter-spacing: .08em; opacity: .7;
}
/* Ссылки шапки: под значком непрочитанного нужен свой контекст позиционирования,
   а курсор должен подсказывать, что это переход, а не подпись. */
.stf-top__title_link { position: relative; transition: opacity .15s ease, color .15s ease; }
.stf-top__title_link:hover { opacity: 1; color: rgb(var(--color-accent, 218, 170, 86)); }
.stf-top__dot {
    position: absolute; top: -9px; right: -14px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    font: 700 10.5px/1 var(--font-2, "intro", Arial, sans-serif); letter-spacing: 0;
    color: #fff; background: #d93025;
    border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
    animation: btn-dot-in .34s cubic-bezier(.34, 1.56, .64, 1);
}
.stf-top__dot[hidden] { display: none; }
.stf-top__agent { display: flex; align-items: center; gap: .55rem; margin-left: auto; min-width: 0; }
.stf-top__name { font-size: .88rem; color: rgb(var(--color-accent, 218, 170, 86)); white-space: nowrap; }
.stf-top__role { font-size: .74rem; opacity: .5; white-space: nowrap; }
.stf-top form { margin: 0; }
.stf-top .ui-btn { width: auto; padding: .45rem 1rem; font-size: .78rem; }
.stf-wrap { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.25rem 3rem; }
.stf-desktop { margin: 0 0 28px; border: 1px solid #3d3425; background: #15130f; color: #e7dfd0; }
.stf-desktop__main { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center; gap: 28px; padding: 26px; }
.stf-desktop__preview { display: block; min-width: 0; color: #b7ad9d; }
.stf-desktop__preview img { display: block; width: 100%; height: auto; border: 1px solid #34312a; }
.stf-desktop__preview > span { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; }
.stf-desktop__preview:hover { color: #e8bd72; }
.stf-desktop__content { min-width: 0; }
.stf-desktop__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.stf-desktop__heading h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; color: #f3e6cf; }
.stf-desktop__version { border: 1px solid #51412a; padding: 4px 7px; color: #d6ad6c; font-size: 12px; line-height: 1; }
.stf-desktop__lead { margin: 0 0 16px; color: #c3b9a8; font-size: 14px; line-height: 1.65; }
.stf-desktop__features { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; }
.stf-desktop__features li { position: relative; padding-left: 18px; }
.stf-desktop__features li::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 5px; border-left: 1.5px solid #d6ad6c; border-bottom: 1.5px solid #d6ad6c; transform: rotate(-45deg); }
.stf-desktop__downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.stf-download { display: flex; align-items: center; flex: 1 1 220px; min-width: 0; min-height: 76px; gap: 12px; padding: 14px 16px; border: 1px solid #80643b; border-radius: 4px; background: #201b13; color: #edcd96; text-decoration: none; transition: background-color .15s, border-color .15s; }
.stf-download:hover { background: #30271a; border-color: #e8bd72; color: #f6deb5; }
.stf-download_primary { background: #dfb56a; border-color: #dfb56a; color: #241a0c; }
.stf-download_primary:hover { background: #edc681; border-color: #edc681; color: #241a0c; }
.stf-download__windows { width: 24px; height: 24px; flex-shrink: 0; }
.stf-download__arrow { width: 19px; height: 19px; margin-left: auto; flex-shrink: 0; }
.stf-download__label { display: grid; gap: 5px; min-width: 0; }
.stf-download__label strong { font-size: 15px; line-height: 1.25; font-weight: 700; }
.stf-download__label > span { font-size: 11px; line-height: 1.4; opacity: .8; }
.stf-desktop__hint { margin: 0; color: #b5aa96; font-size: 12px; line-height: 1.6; }
.stf-desktop__details { border-top: 1px solid #3d3425; }
.stf-desktop__details summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 26px; color: #d6b57f; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.stf-desktop__details summary::-webkit-details-marker { display: none; }
.stf-desktop__details summary:hover { background: #1e1a13; color: #f1d8ad; }
.stf-desktop__details summary > span { font-size: 21px; line-height: 1; font-weight: 400; }
.stf-desktop__details[open] summary > span { transform: rotate(45deg); }
.stf-desktop__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 4px 26px 24px; }
.stf-desktop__specs > div { min-width: 0; }
.stf-desktop__specs h3 { margin: 0 0 14px; font-size: 15px; color: #f3e6cf; }
.stf-desktop__specs dl { display: grid; gap: 11px; margin: 0; font-size: 12px; line-height: 1.6; }
.stf-desktop__specs dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.stf-desktop__specs dt { color: #a89d8a; }
.stf-desktop__specs dd { margin: 0; color: #ded4c3; }
.stf-desktop__note { margin: 16px 0 0; color: #b5aa96; font-size: 12px; line-height: 1.6; }
.stf-desktop a:focus-visible, .stf-desktop summary:focus-visible { outline: 2px solid #edc681; outline-offset: 4px; }
@media (max-width: 850px) {
    .stf-desktop__main { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .stf-desktop__preview { width: min(100%, 520px); margin: 0 auto; }
}
@media (max-width: 600px) {
    .stf-desktop__main { padding: 18px; }
    .stf-desktop__heading h2 { font-size: 25px; }
    .stf-desktop__details summary { padding: 16px 18px; }
    .stf-desktop__specs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 4px 18px 20px; }
    .stf-desktop__specs dl > div { grid-template-columns: 1fr; gap: 2px; }
}

.stf-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1rem; }
.stf-filters a {
    padding: .3rem .7rem; border-radius: 20px; font-size: .78rem;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .25);
    color: rgba(var(--color-light, 232, 209, 166), .8);
}
.stf-filters a:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .5); color: rgb(var(--color-accent, 218, 170, 86)); }
.stf-filters a.is-active {
    color: #1a140a; border-color: #b07f2f;
    background: linear-gradient(180deg, #e7c877 0%, #daaa56 100%);
}
.stf-search { display: flex; gap: .5rem; margin-left: auto; }
.stf-search input {
    padding: .35rem .6rem; font-family: inherit; font-size: .82rem; min-width: 200px;
    color: rgb(var(--color-light, 232, 209, 166)); background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 7px;
}
.stf-search input:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); }
.stf-search .ui-btn { width: auto; padding: .35rem .9rem; font-size: .76rem; }

.stf-row__subject { display: block; color: rgb(var(--color-light, 232, 209, 166)); }
.stf-row__subject:hover { color: rgb(var(--color-accent, 218, 170, 86)); }
.stf-row__mail { display: block; margin-top: .2rem; font-size: .74rem; opacity: .5; }
.stf-num { font-family: Consolas, monospace; font-size: .82rem; opacity: .7; }

/* Строка списка целиком ведёт в тикет — курсор об этом сообщает. */
.stf-table tbody tr { cursor: pointer; }
.stf-row__go {
    display: inline-block; padding: .3rem .7rem; border-radius: 7px; white-space: nowrap;
    font-size: .78rem; color: rgb(var(--color-accent, 218, 170, 86));
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .45); background: rgba(0, 0, 0, .25);
}
.stf-row__go:hover {
    color: #1a140a; border-color: #b07f2f;
    background: linear-gradient(180deg, #e7c877 0%, #daaa56 100%);
}
.stf-panel {
    padding: 1.1rem 1.2rem 1.2rem; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .26);
}
.stf-panel .tk-thread { max-height: none; }
.stf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1rem; align-items: start; }
.stf-card {
    padding: .9rem 1rem; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .26);
}
.stf-card h2 {
    margin: 0 0 .7rem; font-family: var(--font-2, "intro", sans-serif); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .07em; color: rgb(var(--color-accent, 218, 170, 86));
}
.stf-card h2.stf-card__next { margin-top: 1rem; }
.stf-facts { display: flex; flex-direction: column; gap: .45rem; font-size: .82rem; }
.stf-facts div { display: flex; gap: .5rem; align-items: baseline; }
.stf-facts span { flex: 0 0 92px; opacity: .5; }
.stf-facts b { min-width: 0; font-weight: 500; word-break: break-word; }
.stf-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.stf-actions form { margin: 0; }
.stf-actions .ui-btn { width: 100%; padding: .55rem 1rem; font-size: .8rem; }
.stf-check { display: flex; align-items: flex-start; gap: .45rem; font-size: .82rem; line-height: 1.4; cursor: pointer; }
.stf-check input { margin-top: .15rem; width: 15px; height: 15px; accent-color: rgb(var(--color-accent, 218, 170, 86)); }
.stf-login { max-width: 420px; margin: 3.5rem auto; }
.stf-login__hint { margin: 0 0 1rem; font-size: .85rem; line-height: 1.55; opacity: .7; }
@media (max-width: 900px) { .stf-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- Тикеты в обычной админке: агенты и сводка оценок --- */
.sup-sum { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.2rem; font-size: .8rem; }
.sup-sum span {
    padding: .3rem .7rem; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .25);
}
.sup-sum b { color: rgb(var(--color-accent, 218, 170, 86)); }
.sup-agent__ava { display: flex; align-items: center; gap: .5rem; }
.sup-token { display: flex; gap: .4rem; align-items: center; }
.sup-token input { flex: 1 1 auto; min-width: 0; font-family: Consolas, monospace; font-size: .78rem; }
.sup-token button {
    flex: 0 0 auto; padding: .3rem .55rem; border-radius: 6px; cursor: pointer; font-family: inherit;
    font-size: .72rem; color: rgb(var(--color-accent, 218, 170, 86)); background: transparent;
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .45);
}
.sup-token button:hover { background: rgba(var(--color-accent, 218, 170, 86), .12); }
.sup-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .18rem .55rem; min-width: 260px; }
.sup-depts label { display: flex; align-items: center; gap: .3rem; font-size: .74rem; cursor: pointer; }
.sup-depts input { flex: 0 0 auto; width: 14px; height: 14px; accent-color: rgb(var(--color-accent, 218, 170, 86)); }
.sup-depts span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-bars { display: flex; flex-direction: column; gap: .3rem; margin: .2rem 0 1.2rem; max-width: 420px; }
.sup-bar { display: flex; align-items: center; gap: .5rem; font-size: .78rem; }
.sup-bar__k { flex: 0 0 46px; opacity: .6; }
.sup-bar__track { flex: 1 1 auto; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sup-bar__fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #c6913b, #e7c877); }
.sup-bar__n { flex: 0 0 34px; text-align: right; font-variant-numeric: tabular-nums; opacity: .7; }

/* --- Разметка сообщений: белый список TicketMarkup --- */
.tk-c_red { color: #e8776b; }
.tk-c_orange { color: #e7a45c; }
.tk-c_yellow { color: #e6d267; }
.tk-c_green { color: #8fd382; }
.tk-c_blue { color: #7fb8e8; }
.tk-c_gold { color: rgb(var(--color-accent, 218, 170, 86)); }
.tk-c_grey { color: #9aa0a8; }
.tk-f_mono { font-family: Consolas, ui-monospace, monospace; font-size: .95em; }
.tk-f_big { font-size: 1.18em; }
.tk-f_small { font-size: .85em; opacity: .85; }

/* Панель форматирования над полем ответа */
.tk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.tk-tool {
    min-width: 30px; padding: .28rem .5rem; border-radius: 6px; cursor: pointer; font-family: inherit;
    font-size: .82rem; line-height: 1.1; color: rgba(var(--color-light, 232, 209, 166), .85);
    background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .13);
}
.tk-tool:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .55); color: rgb(var(--color-accent, 218, 170, 86)); }
.tk-tool_b { font-weight: 700; }
.tk-tool_i { font-style: italic; }
.tk-tool_u { text-decoration: underline; }
.tk-tool_s { text-decoration: line-through; }
.tk-tool_mono { font-family: Consolas, monospace; }
.tk-tool_dot { width: 22px; min-width: 22px; height: 22px; padding: 0; border-radius: 50%; }

/* Заготовленные ответы: системный select в панели форматирования.
   Отодвинут влево от кнопок начертания — это не начертание, а вставка текста,
   и путать их не надо. */
.tk-canned {
    margin-left: auto; max-width: 15rem; padding: .28rem .5rem;
    font-family: inherit; font-size: .82rem; line-height: 1.1;
    color: rgba(var(--color-light, 232, 209, 166), .85);
    background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 6px; cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.tk-canned:hover {
    border-color: rgba(var(--color-accent, 218, 170, 86), .55);
    color: rgb(var(--color-accent, 218, 170, 86));
}
/* Список раскрывается системным виджетом: у него свой фон, и на тёмной теме
   светлый текст на светлом фоне не читается. */
.tk-canned option { color: #1a140a; background: #f4f1ea; }

/* Аккуратные галочки вместо системных квадратиков */
.tk-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .83rem; line-height: 1.45; cursor: pointer; }
.tk-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.tk-check__box {
    flex: 0 0 auto; position: relative; width: 18px; height: 18px; margin-top: .1rem; border-radius: 5px;
    background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .2);
    transition: background .15s ease, border-color .15s ease;
}
.tk-check__box::after {
    content: ''; position: absolute; left: 5px; top: 2px; width: 6px; height: 10px;
    border: solid #1a140a; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.4);
    opacity: 0; transition: opacity .12s ease, transform .12s ease;
}
.tk-check:hover .tk-check__box { border-color: rgba(var(--color-accent, 218, 170, 86), .6); }
.tk-check input:checked + .tk-check__box {
    background: linear-gradient(180deg, #e7c877 0%, #daaa56 100%); border-color: #b07f2f;
}
.tk-check input:checked + .tk-check__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.tk-check input:focus-visible + .tk-check__box { box-shadow: 0 0 0 3px rgba(var(--color-accent, 218, 170, 86), .3); }
/* --- Лайтбокс вложений: и картинка, и видео открываются поверх страницы --- */
body.tk-light-open { overflow: hidden; }
.tk-light {
    position: fixed; inset: 0; z-index: 900;
    display: flex; align-items: center; justify-content: center; padding: 3vmin;
}
.tk-light[hidden] { display: none; }
.tk-light__shade {
    position: absolute; inset: 0; background: rgba(4, 5, 8, .82);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tk-light__stage {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    max-width: 100%; max-height: 100%;
}
.tk-light__img {
    display: block; max-width: 92vw; max-height: 92vh; max-height: 92dvh;
    border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.tk-light__player { width: min(92vw, 1100px); }
.tk-light__x {
    position: absolute; top: 1.2rem; right: 1.4rem; z-index: 2;
    width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
    font-size: 26px; line-height: 1; color: rgb(var(--color-light, 232, 209, 166));
    background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18);
}
.tk-light__x:hover { color: #fff; background: rgba(0, 0, 0, .7); }

/* --- Свой видеоплеер --- */
.tk-player {
    position: relative; overflow: hidden; border-radius: 10px;
    background: #05060a; border: 1px solid rgba(255, 255, 255, .12);
}
.tk-player__video { display: block; width: 100%; max-width: none; max-height: 78vh; background: #05060a; cursor: pointer; }
.tk-player__name {
    position: absolute; top: 0; left: 0; right: 0; padding: .5rem .8rem;
    font-size: .78rem; color: rgba(255, 255, 255, .85);
    background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 1; transition: opacity .2s ease; pointer-events: none;
}
.tk-player.is-playing .tk-player__name { opacity: 0; }
.tk-player__bar {
    display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .4));
}
.tk-player__btn {
    flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border-radius: 6px; cursor: pointer;
    font-size: .9rem; line-height: 1; color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.tk-player__btn:hover { background: rgba(255, 255, 255, .18); }
.tk-player__btn_play { color: rgb(var(--color-accent, 218, 170, 86)); }
.tk-player__track {
    flex: 1 1 auto; height: 6px; border-radius: 3px; cursor: pointer; touch-action: none;
    background: rgba(255, 255, 255, .16);
}
.tk-player__fill {
    display: block; width: 0; height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #c6913b, #e7c877);
}
.tk-player__time {
    flex: 0 0 auto; font-size: .74rem; font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .75);
}

/* Видео в переписке: превью с меткой «play» */
.tk-vid {
    position: relative; display: block; width: 150px; height: 92px; border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .45);
}
.tk-vid:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .6); }
.tk-vid video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tk-vid__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
    background: rgba(0, 0, 0, .25);
}
.tk-vid__len {
    position: absolute; right: .35rem; bottom: .3rem; padding: .05rem .35rem; border-radius: 4px;
    font-size: .7rem; color: #fff; background: rgba(0, 0, 0, .68);
}
.tk-gone {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 7px;
    font-size: .76rem; opacity: .55;
    border: 1px dashed rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .03);
}
/* Превью выбранных файлов до отправки: скриншот виден сразу */
.tk-file__thumb {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 6px; overflow: hidden;
    background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .12);
}
.tk-file__thumb img,
.tk-file__thumb video {
    display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover;
}
.tk-file__thumb_doc {
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; opacity: .6;
}
.tk-file { padding-left: .45rem; }

/* Атрибут hidden против display у флекс-блоков: без явного правила
   display:flex/grid перебивает его, и скрытый блок остаётся на экране.
   Перечислены все контейнеры тикетов, которые прячет JS. */
.tk-bar[hidden],
.tk-files[hidden],
.tk-form[hidden],
.tk-list[hidden],
.tk-mate[hidden],
.tk-rate[hidden],
.tk-tools[hidden] { display: none; }

/* Привязка уведомлений в панели тикетов: свёрнутый блок, чтобы не мешать */
.stf-notify {
    margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .24);
}
.stf-notify > summary {
    cursor: pointer; font-size: .88rem; color: rgb(var(--color-accent, 218, 170, 86));
    list-style: none;
}
.stf-notify > summary::-webkit-details-marker { display: none; }
.stf-notify > summary::before { content: '▸ '; opacity: .6; }
.stf-notify[open] > summary::before { content: '▾ '; }
.stf-notify__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .6rem; margin-top: .6rem;
}
.stf-notify__card {
    display: flex; flex-direction: column; gap: .45rem;
    padding: .7rem .8rem; border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .09); background: rgba(0, 0, 0, .26);
}
.stf-notify__card form { margin: 0; }
.stf-notify__card .ui-btn { width: auto; padding: .45rem 1rem; font-size: .8rem; }
.stf-notify__head { display: flex; align-items: center; gap: .5rem; }
.stf-notify__head b { font-size: .92rem; }
.stf-notify__head .tk-badge { margin-left: auto; }
.stf-notify__act { display: flex; flex-wrap: wrap; gap: .45rem; }
.stf-notify__code {
    display: inline-block; padding: .1rem .45rem; border-radius: 5px;
    font-family: Consolas, monospace; font-size: .95rem; letter-spacing: .12em;
    color: rgb(var(--color-accent, 218, 170, 86));
    background: rgba(0, 0, 0, .4); border: 1px solid rgba(var(--color-accent, 218, 170, 86), .35);
}

/* Ключ входа в личном кабинете агента */
.stf-key { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.2rem; }
.stf-key input {
    flex: 1 1 320px; min-width: 0; padding: .55rem .7rem; border-radius: 8px;
    font-family: Consolas, monospace; font-size: .86rem; letter-spacing: .02em;
    color: rgb(var(--color-light, 232, 209, 166));
    background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .16);
}
.stf-key input:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); }
.stf-key form { margin: 0; }
.stf-key .ui-btn { width: auto; flex: 0 0 auto; padding: .55rem 1.1rem; font-size: .82rem; }

/* --- Панель тикетов и модалка на узких экранах --- */
@media (max-width: 900px) {
    .stf-top { flex-wrap: wrap; gap: .6rem .8rem; }
    .stf-top__agent { width: 100%; margin-left: 0; }
    .stf-search { margin-left: 0; width: 100%; }
    .stf-search input { min-width: 0; flex: 1 1 auto; }
}
@media (max-width: 720px) {
    /* Таблица тикетов превращается в карточки: 8 колонок в телефон не влезают. */
    .stf-table thead { display: none; }
    .stf-table, .stf-table tbody, .stf-table tr, .stf-table td { display: block; width: 100%; }
    .stf-table tr {
        margin-bottom: .6rem; padding: .6rem .7rem; border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .26);
    }
    .stf-table td { border: 0; padding: .18rem 0; }
    .stf-table td:empty { display: none; }
    .tk-light__x { top: .6rem; right: .6rem; }
}
@media (max-width: 560px) {
    .tk-bar { flex-wrap: wrap; }
    .tk-tabs { width: 100%; }
    .tk-add { width: 100%; height: 38px; }
    .tk-vid { width: 46vw; height: 28vw; }
    .tk-shot { width: 46vw; height: 34vw; }
    .tk-player__time { display: none; }
}

/* Пагинация списка обращений: пять на страницу */
.tk-pages { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: .7rem; }
.tk-pages[hidden] { display: none; }
.tk-page {
    min-width: 28px; height: 28px; padding: 0 .4rem; border-radius: 7px; cursor: pointer;
    font-family: inherit; font-size: .8rem; color: rgba(var(--color-light, 232, 209, 166), .8);
    background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .12);
}
.tk-page:hover { border-color: rgba(var(--color-accent, 218, 170, 86), .55); color: rgb(var(--color-accent, 218, 170, 86)); }
.tk-page.is-on {
    color: #1a140a; border-color: #b07f2f;
    background: linear-gradient(180deg, #e7c877 0%, #daaa56 100%);
}
.tk-page[disabled] { opacity: .35; cursor: default; }
.tk-page[disabled]:hover { border-color: rgba(255, 255, 255, .12); color: rgba(var(--color-light, 232, 209, 166), .8); }

/* Закрытое обращение: вместо поля ответа — объяснение */
.tk-closed {
    padding: .8rem .9rem; border-radius: 10px; font-size: .85rem; line-height: 1.55;
    border: 1px dashed rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); opacity: .8;
}

/* «{имя} печатает…» под перепиской: три точки живут своей волной, поэтому
   индикатор виден и когда взгляд на поле ввода, а не на список сообщений. */
.tk-typing {
    display: flex; align-items: center; gap: .45rem;
    min-height: 1.1rem; margin: -.35rem 0 .5rem; padding: 0 .2rem;
    font-size: .78rem; color: rgb(var(--color-accent, 218, 170, 86)); opacity: .85;
}
.tk-typing[hidden] { display: none; }
.tk-typing__dots { display: inline-flex; gap: 3px; }
.tk-typing__dots i {
    width: 4px; height: 4px; border-radius: 50%;
    background: currentColor; opacity: .3;
    animation: tk-typing-dot 1.2s infinite ease-in-out;
}
.tk-typing__dots i:nth-child(2) { animation-delay: .18s; }
.tk-typing__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes tk-typing-dot {
    0%, 60%, 100% { opacity: .28; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
    .tk-typing__dots i { animation: none; opacity: .7; }
}

/* Живой предпросмотр набираемого. Текст ещё не отправлен, поэтому он намеренно
   не похож на сообщение: курсив, приглушённый цвет, пунктирная рамка слева и
   мигающая каретка в конце. Спутать с отправленным невозможно. */
.tk-typing_draft {
    display: block; padding: .45rem .6rem .5rem;
    border-left: 2px dashed rgba(var(--color-accent, 218, 170, 86), .45);
    border-radius: 0 8px 8px 0;
    background: rgba(var(--color-accent, 218, 170, 86), .05);
}
.tk-typing_draft .tk-typing__who,
.tk-typing_draft .tk-typing__dots { vertical-align: middle; }
.tk-typing_draft .tk-typing__dots { display: inline-flex; margin-left: .35rem; }
.tk-typing__draft {
    display: block; margin: .25rem 0 0;
    font-family: var(--font-3, "Intro Book", "intro", Arial, sans-serif);
    font-size: .82rem; font-style: italic; line-height: 1.5;
    color: rgba(var(--color-light, 232, 209, 166), .72);
    /* Черновик приходит хвостом и бывает длинным: перенос по словам, ломающиеся
       длинные «слова» вроде ссылок — иначе он растягивает модалку по ширине. */
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.tk-typing__draft[hidden] { display: none; }
.tk-typing__draft::after {
    content: ''; display: inline-block; vertical-align: text-bottom;
    width: 1px; height: 1em; margin-left: 2px;
    background: rgb(var(--color-accent, 218, 170, 86));
    animation: tk-caret 1.05s step-end infinite;
}
@keyframes tk-caret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tk-typing__draft::after { animation: none; opacity: .6; }
}

/* Карточка того, кто ведёт обращение: рейтинг и объём работы */
.tk-mate {
    padding: .8rem .9rem; margin: .2rem 0 .9rem; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .26);
}
.tk-mate__head { display: flex; align-items: center; gap: .6rem; }
.tk-mate__who { display: flex; flex-direction: column; min-width: 0; }
.tk-mate__name { font-size: .92rem; color: rgb(var(--color-accent, 218, 170, 86)); }
.tk-mate__role { font-size: .74rem; opacity: .55; }
.tk-mate__score { margin-left: auto; display: flex; align-items: baseline; gap: .25rem; }
.tk-mate__score b { font-size: 1.4rem; color: #e7c877; }
.tk-mate__score span { font-size: .76rem; opacity: .5; }
.tk-mate__facts {
    display: flex; flex-wrap: wrap; gap: .35rem .8rem;
    margin-top: .6rem; font-size: .76rem; opacity: .62;
}
.tk-mate__bars { display: flex; flex-direction: column; gap: .25rem; margin-top: .6rem; }
.tk-mbar { display: flex; align-items: center; gap: .5rem; font-size: .74rem; }
.tk-mbar__k { flex: 0 0 34px; opacity: .6; }
.tk-mbar__track { flex: 1 1 auto; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tk-mbar__fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #c6913b, #e7c877); }
.tk-mbar__n { flex: 0 0 40px; text-align: right; font-variant-numeric: tabular-nums; opacity: .6; }

/* Предложение передачи в панели: подтверждение ограничено минутами */
.stf-offer {
    padding: .8rem .9rem; margin: 0 0 .8rem; border-radius: 10px; font-size: .86rem; line-height: 1.5;
    border: 1px solid rgba(224, 163, 92, .45); background: rgba(224, 163, 92, .1);
}
.stf-offer__act { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.stf-offer__act form { margin: 0; }
.stf-offer__act .ui-btn { width: auto; padding: .45rem 1rem; font-size: .8rem; }

.stf-transfer { display: flex; gap: .4rem; }
.stf-select {
    flex: 1 1 auto; min-width: 0; padding: .45rem .5rem; border-radius: 7px;
    font-family: inherit; font-size: .82rem; color: rgb(var(--color-light, 232, 209, 166));
    background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .16);
}
.stf-select:focus { outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); }
.stf-transfer .ui-btn { width: auto; flex: 0 0 auto; padding: .45rem .8rem; font-size: .78rem; }

/* --- Окно передачи тикета ---
   Список людей, а не выпадающий select: у каждого есть должность, и выбирать
   «кому отдать обращение» по строке из десяти символов — угадывание. */
.stf-pass { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.stf-pass[hidden] { display: none; }
.stf-pass__veil {
    position: absolute; inset: 0; display: block;
    background: rgba(4, 6, 9, .66);
}
.stf-pass__box {
    position: relative; z-index: 1; width: 100%; max-width: 520px;
    max-height: 86vh; overflow: auto; padding: 1.5rem 1.6rem 1.4rem;
    border-radius: 14px; border: 1px solid rgba(var(--color-accent, 218, 170, 86), .3);
    background: linear-gradient(165deg, rgba(26, 22, 17, .98) 0%, rgba(12, 13, 16, .99) 100%);
    animation: stfPass .22s ease both;
}
@keyframes stfPass { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.stf-pass__x {
    position: absolute; top: 12px; right: 14px;
    width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: .95rem; text-decoration: none;
    color: rgba(255, 255, 255, .55);
}
.stf-pass__x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.stf-pass__title {
    margin: 0 0 .45rem; padding-right: 2rem;
    font-family: var(--font-2, "intro", sans-serif); font-size: 1.05rem;
    color: rgb(var(--color-accent, 218, 170, 86));
}
.stf-pass__lead { margin: 0 0 1.1rem; font-size: .84rem; line-height: 1.55; opacity: .72; }
.stf-pass__form { margin: 0; }
.stf-pass__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.stf-pass__one {
    display: flex; align-items: center; gap: .7rem;
    padding: .6rem .75rem; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03);
    transition: background .15s ease, border-color .15s ease;
}
.stf-pass__one:hover { background: rgba(255, 255, 255, .07); }
/* Радиокнопку прячем, но не от клавиатуры: выбор остаётся доступным с Tab. */
.stf-pass__one input { position: absolute; opacity: 0; width: 0; height: 0; }
.stf-pass__mark {
    width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%;
    border: 1px solid rgba(var(--color-accent, 218, 170, 86), .5);
    position: relative;
}
.stf-pass__one input:checked + .stf-pass__mark::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%;
    background: rgb(var(--color-accent, 218, 170, 86));
}
.stf-pass__one:has(input:checked) {
    border-color: rgba(var(--color-accent, 218, 170, 86), .55);
    background: rgba(var(--color-accent, 218, 170, 86), .1);
}
.stf-pass__one input:focus-visible + .stf-pass__mark {
    outline: 2px solid rgba(var(--color-accent, 218, 170, 86), .7); outline-offset: 2px;
}
.stf-pass__who { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.stf-pass__who b { font-size: .9rem; }
.stf-pass__who span { font-size: .74rem; opacity: .6; }
.stf-pass__act { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.stf-pass__act .ui-btn { width: auto; padding: .5rem 1.1rem; font-size: .82rem; }
body.stf-pass-open { overflow: hidden; }

/* Поиск в админке: тот же вид, что у остальных полей */
.admin-search { display: flex; gap: .5rem; align-items: center; margin: 0 0 1rem; max-width: 520px; }
.admin-search input {
    flex: 1 1 auto; min-width: 0; padding: .5rem .7rem; border-radius: 8px;
    font-family: inherit; font-size: .88rem; color: rgb(var(--color-light, 232, 209, 166));
    background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .16);
}
.admin-search input:focus {
    outline: none; border-color: rgb(var(--color-accent, 218, 170, 86)); background: rgba(0, 0, 0, .55);
}
.admin-search .ui-btn { width: auto; flex: 0 0 auto; padding: .5rem 1.1rem; font-size: .82rem; }

.auth-captcha__status { margin: .5rem 0; font-size: .85rem; line-height: 1.4; }
.auth-captcha__status:empty { display: none; }
.collection-guide { color: #d8cbb6; font-size: 15px; line-height: 1.7; }
.collection-guide__facts { display: flex; flex-wrap: wrap; gap: 18px 38px; margin: 24px 0 30px; padding: 18px 0; border-block: 1px solid #675236; }
.collection-guide__facts > div { display: flex; flex-direction: column; gap: 3px; }
.collection-guide__facts strong { color: #f1d09a; font-size: 23px; line-height: 1.2; }
.collection-guide__facts span { color: #aa9a82; font-size: 13px; }
.collection-guide__section { margin: 30px 0; }
.collection-guide__section h3 { margin: 0 0 14px; color: #efd4a0; font-size: 20px; }
.collection-guide__section h4 { margin: 0 0 8px; color: #dfbd7c; font-size: 16px; }
.collection-guide__section p { margin: 0 0 14px; }
.collection-guide strong { color: #f1dfbc; font-weight: 600; }
.collection-guide__figure { margin: 22px 0; border: 1px solid #675236; background: #12110e; }
.collection-guide__figure a, .collection-guide__figure img { display: block; width: 100%; }
.collection-guide__figure img { height: auto; }
.collection-guide__figure figcaption { padding: 10px 14px; border-top: 1px solid #493d2c; color: #aa9a82; font-size: 13px; line-height: 1.5; }
.collection-guide__figure--compact { max-width: 500px; margin-inline: auto; }
.collection-guide__instructions > div { display: flex; align-items: baseline; gap: 15px; padding: 12px 0; border-bottom: 1px solid #3c3223; }
.collection-guide__instructions b { flex: 0 0 22px; color: #d9b36b; font-size: 20px; }
.collection-guide__instructions p { margin: 0; }
.collection-guide__levels { margin: 20px 0; font-variant-numeric: tabular-nums; }
.collection-guide__levels > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-bottom: 1px solid #3c3223; }
.collection-guide__levels > div > span:not(:first-child) { text-align: right; }
.collection-guide__level-head { color: #d6b97f; font-size: 13px; background: #211d15; }
.collection-guide__milestone { color: #f0d192; background: #d9b36b0a; }
.collection-guide__note { padding: 14px 18px; border-left: 3px solid #bd9856; background: #211d15; }
.collection-guide__catalog > div { margin-bottom: 20px; padding-left: 16px; border-left: 1px solid #675236; }
.bs-guide.restore-guide {
    max-width: 1040px; padding: 36px 44px; border-color: #514330;
    background: #191710; box-shadow: none; color: #cfc7b8;
    font: 15px/1.8 Arial, sans-serif;
}
.restore-guide .bs-guide__head { margin: 0 0 24px; padding: 0; border: 0; }
.restore-guide h2.bs-guide__title { margin: 0; color: #f2e8d4; font-size: 36px; line-height: 1.2; }
.restore-guide .bs-guide__subhead { max-width: 65ch; margin-top: 12px !important; color: #b9b09e; font-size: 16px; }
.restore-guide .collection-guide__facts { flex-wrap: nowrap; gap: 0; margin: 26px 0 32px; padding: 20px 0; border-color: #514330; }
.restore-guide .collection-guide__facts > div { flex: 1 1 0; min-width: 0; gap: 6px; padding: 0 24px; border-left: 1px solid #514330; }
.restore-guide .collection-guide__facts > div:first-child { padding-left: 0; border-left: 0; }
.restore-guide .collection-guide__facts > div:last-child { padding-right: 0; }
.restore-guide .collection-guide__facts strong { color: #e6c786; font-size: 21px; }
.restore-guide .collection-guide__facts span { color: #b0a58f; font-size: 13px; line-height: 1.5; }
.restore-guide .collection-guide__section { margin: 36px 0 0; }
.restore-guide .collection-guide__section h3 { margin-bottom: 16px; color: #f2e8d4; font: 600 23px/1.3 Arial, sans-serif; text-transform: none; }
.restore-guide .collection-guide__section h4 { color: #e1c68f; font: 600 16px/1.5 Arial, sans-serif; text-transform: none; }
.restore-guide .collection-guide__section p { margin-bottom: 16px; }
.restore-guide strong { color: #eee2c7; }
.restore-guide .collection-guide__figure { margin: 24px 0 0; border: 0; background: transparent; }
.restore-guide .collection-guide__figure a { padding: 18px; border: 1px solid #403729; background: #100f0c; }
.restore-guide .collection-guide__figure a:focus-visible { outline: 2px solid #e6c786; outline-offset: 4px; }
.restore-guide .collection-guide__figure img { max-width: 850px; margin-inline: auto; }
.restore-guide .collection-guide__figure figcaption { padding: 12px 0 0; border: 0; color: #a99f8a; font-size: 12px; line-height: 1.6; }
.restore-guide .collection-guide__instructions > div { gap: 20px; align-items: flex-start; padding: 18px 0; border-color: #393225; }
.restore-guide .collection-guide__instructions > div:first-child { padding-top: 0; }
.restore-guide .collection-guide__instructions b { display: flex; justify-content: center; align-items: center; flex: 0 0 32px; height: 32px; border: 1px solid #6b5738; border-radius: 50%; color: #e6c786; font-size: 15px; line-height: 1; }
.restore-guide .collection-guide__instructions p { margin: 2px 0 0; }
.restore-guide .collection-guide__note { display: block; margin: 24px 0 0; padding: 18px 22px; border-color: #c5a567; background: #252116; }
.restore-guide .collection-guide__catalog > div { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.5fr); gap: 24px; margin: 0; padding: 18px 0; border-left: 0; border-bottom: 1px solid #393225; }
.restore-guide .collection-guide__catalog h4, .restore-guide .collection-guide__catalog p { margin: 0; }
.restore-guide .collection-guide__catalog + p { margin-top: 20px; color: #b0a58f; }
@media (max-width: 600px) {
    .bs-guide.restore-guide { padding: 24px 18px; }
    .restore-guide h2.bs-guide__title { font-size: 28px; }
    .restore-guide .bs-guide__subhead { font-size: 15px; }
    .restore-guide .collection-guide__facts { flex-direction: column; gap: 14px; padding: 18px 0; }
    .restore-guide .collection-guide__facts > div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0; border: 0; }
    .restore-guide .collection-guide__facts strong { font-size: 18px; }
    .restore-guide .collection-guide__facts span { max-width: 52%; text-align: right; }
    .restore-guide .collection-guide__section { margin-top: 28px; }
    .restore-guide .collection-guide__section h3 { font-size: 21px; }
    .restore-guide .collection-guide__figure a { padding: 6px; }
    .restore-guide .collection-guide__instructions > div { gap: 12px; }
    .restore-guide .collection-guide__note { padding: 16px; }
    .restore-guide .collection-guide__catalog > div { display: block; }
    .restore-guide .collection-guide__catalog h4 { margin-bottom: 8px; }
}
@media (max-width: 600px) {
    .collection-guide__facts { gap: 18px; justify-content: space-between; }
    .collection-guide__facts strong { font-size: 19px; }
    .collection-guide__facts span { font-size: 12px; }
    .collection-guide__levels > div { gap: 8px; padding-inline: 4px; font-size: 13px; }
}
.auth-captcha { width: 100%; max-width: 420px; margin-inline: auto; box-sizing: border-box; }
.navigation__gw-burger { border: 0; padding: 12px; color: inherit; }
.navigation__gw-burger:focus-visible { outline: 2px solid #daaa56; outline-offset: 2px; }

@media (max-width: 1199.99px) {
    body.menu-open { overflow: hidden; }
    .fp > .swiper-wrapper { display: block; }
    .fp__swiper-slide { scroll-margin-top: 80px; }
    .menu__content { max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 600px) {
    .ui-modal { padding: 8px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    .ui-modal__dialog { padding: 20px 16px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; overscroll-behavior: contain; }
    .ui-modal__title { padding-right: 32px; font-size: 1.3rem; }
    .ui-modal__close { top: 4px; right: 4px; width: 44px; height: 44px; }
    .auth-card { padding: 1.25rem; }
    .auth-field input, .auth-field select, .auth-field textarea { min-width: 0; font-size: 16px; }
    .auth-captcha { padding: 0; }
    .ui-btn, .auth-captcha__refresh { min-height: 44px; }
    .auth-check { align-items: flex-start; }
    .news__grid { grid-template-columns: minmax(0, 1fr); }
    .about-card__title { white-space: normal; overflow-wrap: anywhere; }
    .about-card__body { max-height: none; }
    .site-footer__inner { flex-wrap: wrap; text-align: center; }
    .admin { flex-direction: column; }
    .admin__side { width: 100%; padding: 1rem; }
    .admin__nav { flex-direction: row; flex-wrap: wrap; }
    .admin__main { min-width: 0; padding: 1rem; }
}
