.profile-header{display:flex;align-items:center;padding:25px;border-radius:10px;grid-column:1/-1;justify-content:space-between}.avatar-container{position:relative;margin-right:30px;flex-shrink:0}.user-avatar{width:120px;height:120px;border-radius:50%;background-color:#2a2a2e;display:flex;align-items:center;justify-content:center;overflow:hidden;border:3px solid #937341}.user-avatar img{width:100%;height:100%;object-fit:cover}.avatar-placeholder{font-size:48px;color:#937341}.profile-actions{display:flex;align-items:center;justify-content:space-between;width:100%}.user-info{margin-right:20px}.action-buttons{display:flex;gap:15px}.btn-avatar{background:linear-gradient(to bottom,#0074e0 0,#0074e0 100%);color:#fff;padding:10px 20px;border:none;border-radius:5px;font-weight:700;cursor:pointer;transition:none;white-space:nowrap}.btn-name{background:linear-gradient(to bottom,#6b6b6b 0,#3d3d3d 100%);color:#fff;padding:10px 20px;border:none;border-radius:5px;font-weight:400;cursor:pointer;transition:none;white-space:nowrap}.user-name{font-size:24px;color:#ffd700;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5;margin-bottom:10px}.user-registration{color:#c7c5b3;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;padding:0 20px 20px}.wow-container{background:#1a1c23;border-radius:5px;box-shadow:0 4px 8px rgba(0,0,0,.4);overflow:hidden;height:100%}.wow-header{background:#22242c;padding:25px 20px;display:flex;align-items:center}.wow-header i{color:#937341;font-size:1.5em;margin-right:15px}.wow-header h3{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;text-transform:uppercase;font-size:1.1em}.wow-content{padding:15px;color:#c7c5b3;font-family:Arial,sans-serif}.balance-container{text-align:center;justify-content:space-between;align-items:center;margin-bottom:20px;margin-top:19px}.balance-value{color:#ffd700;display:flex;align-items:center;justify-content:center}.balance-value img{height:20px;margin-left:2px}.wallet-buttons{display:grid;gap:12px}.btn-wow{padding:12px 20px;border:none;border-radius:5px;font-weight:700;text-transform:uppercase;cursor:pointer;transition:none}.btn-gold{background:linear-gradient(to bottom,#0074e0 0,#0074e0 100%);color:#fff}.btn-silver{background:linear-gradient(to bottom,#6b6b6b 0,#3d3d3d 100%);color:#fff}.btn-emerald{background:linear-gradient(to bottom,#4299ff 0,#0074e0 100%);color:#fff}.user-data .data-row{display:flex;justify-content:space-between;margin-bottom:12px;padding:8px 0;border-bottom:1px solid #3d3d3f}.vote-info{text-align:center}.vote-count{color:#6cdb00;font-weight:700;font-size:1.2em}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.stat-item{text-align:center;padding:15px;background:rgba(0,0,0,.3);border-radius:5px}.stat-value{color:#ffd700;font-size:1.8em;font-weight:700}.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.7)}.modal-content{background:#1a1a1c;padding:25px;border-radius:10px;max-width:600px;margin:15% auto;position:relative;animation:modalOpen .3s ease-out}@media(min-width:768px){.modal-content{margin:5% auto}}@media(max-width:767px){.modal-content{margin:15% auto;width:90%}}@keyframes modalOpen{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}.close{position:absolute;right:20px;top:10px;color:#aaa;font-size:28px;cursor:pointer}.close:hover{color:#fff}.form-group{margin:15px 0}.form-group label{display:block;margin-bottom:5px;color:#c7c5b3}.form-group input{width:100%;padding:8px;background:#1a1c23;border:1px solid #3d3d3f;color:#fff;border-radius:4px}.balance-top-up{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:700;color:#148eff;white-space:nowrap;margin-left:auto;letter-spacing:.05em;text-decoration:none;transition:none}.transfer-link{display:block;margin-top:10px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:700;color:#148eff;text-decoration:none}.balance-top-up:hover,.transfer-link:hover{opacity:1!important;color:#148eff!important;text-shadow:none!important;transform:none!important;background:transparent!important;box-shadow:none!important;transition:none!important;filter:none!important}
.balance-value{color:#6cdb00;font-family:Noto Sans,sans-serif;font-size:24px;display:block;margin:10px 0}.modal-content h3{color:#937341;margin-top:0;text-transform:uppercase;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:1.2em;letter-spacing:.05em}.action-link{background:0 0!important;border:none;padding:0!important;font:inherit;cursor:pointer;color:#148eff;font-weight:700;transition:none}.action-link:hover{opacity:1!important;text-decoration:none}.action-link:disabled{color:#6c757d;cursor:not-allowed;opacity:.6}.error-message-center{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000;text-align:center}.error-message{padding:15px;border-radius:5px;background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;box-shadow:0 0 10px rgba(0,0,0,.1)}.alert{border-radius:5px;margin-bottom:15px}.alert-danger{background-color:rgba(255,56,40,.15);color:#ff6b6b;border:1px solid #ff3828}.alert-success{background-color:rgba(26,165,9,.15);color:#6cdb00;border:1px solid #1aa509}.alert-warning{background-color:rgba(255,193,7,.15);color:#ffc107;border:1px solid #ffc107}@media (max-width:768px){.dashboard-grid{grid-template-columns:1fr}.profile-header{flex-direction:column;text-align:center}.avatar-container{margin-right:0;margin-bottom:20px}.profile-actions{flex-direction:column}.user-info{margin-right:0;text-align:center}.action-buttons{flex-direction:column;width:100%}.user-name,.user-registration{white-space:normal;text-align:center}.wow-header{padding:12px 15px}.wow-content{padding:15px}}@media (min-width:1600px){.dashboard-grid{max-width:1600px;margin:0 auto}}

.input-status, .input-about {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #18191c;
    color: #fff;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.2;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-status:focus, .input-about:focus {
    border-color: #937341;
    box-shadow: 0 0 0 2px rgba(147, 115, 65, 0.3);
    outline: none;
}
/*common.css*/
.nk-aside {width: 285px;}.nk-menu-link {position: relative;color: #fff;transition: all .3s ease;border-radius: .5rem;display: flex;align-items: center;padding: 0.625rem 40px 0.625rem 24px;font-size: 15px;font-weight: 700;line-height: 1.25rem;font-family: Nunito, Roboto, Arial;}.nk-menu-link:before {content: "";position: absolute;top: 0;left: 0;width: 4px;height: 100%;background-color: transparent;transition: all .3s ease;border-radius: .5rem 0 0 .5rem;}.nk-menu-link:hover, .nk-menu-item.active .nk-menu-link {color: #fff;background-color: transparent;}.nk-menu-item.active .nk-menu-link:before {background-color: #0971fe;}.notification-badge {position: absolute;top: -8px;right: -8px;background: #ff4858;color: #fff;font-size: 10px;font-weight: 600;min-width: 18px;height: 18px;border-radius: 12px;display: flex;align-items: center;justify-content: center;line-height: 1;padding: 0 4px;}.message-badge {position: absolute;top: -5px;right: -5px;background: #ff4858;color: white;border-radius: 50%;width: 18px;height: 18px;font-size: 10px;display: flex;align-items: center;justify-content: center;font-weight: bold;}.Spinner {width: 20px;height: 20px;background: url('https://turbo-wow.ru/assets/images/Spinner-bnet25.png') 0 0;background-size: 420px 20px;animation: Spinner-animationDefault 1.3s steps(20) infinite;display: block;flex-shrink: 0;}@keyframes Spinner-animationDefault {from {background-position: 0 0;}to {background-position: -400px 0;}}@media (min-width: 992px) {.nk-aside.sidebar-collapsed, #dashboard-sidebar.sidebar-collapsed {width: 45px !important;min-width: 45px !important;max-width: 45px !important;overflow: hidden !important;}.nk-aside.sidebar-collapsed .nk-menu-text, #dashboard-sidebar.sidebar-collapsed .nk-menu-text {display: none !important;}.nk-aside.sidebar-collapsed .nk-menu-heading, #dashboard-sidebar.sidebar-collapsed .nk-menu-heading {display: none !important;}.nk-aside.sidebar-collapsed .nk-menu-link, #dashboard-sidebar.sidebar-collapsed .nk-menu-link {padding-left: 12px !important;padding-right: 12px !important;padding-top: 0.625rem !important;padding-bottom: 0.625rem !important;justify-content: flex-start !important;}.nk-aside.sidebar-collapsed .nk-menu-icon, #dashboard-sidebar.sidebar-collapsed .nk-menu-icon {margin-left: 0 !important;}}@media screen and (max-width: 767px) {.nk-aside,#dashboard-sidebar{width:280px !important;max-width:calc(100vw - 24px) !important;min-width:0 !important}.nk-menu-link {border-radius: 0 !important;padding: .75rem 1.5rem !important;}.nk-menu-link:before {border-radius: 0 !important;}.nk-menu-item {width: 100% !important;}.nk-menu-heading {padding-left: 1.5rem;padding-right: 1.5rem;}html, body {width: 100%;margin: 0;padding: 0;overflow-x: hidden;}}
/*account.css*/
.marker-oval {max-width: none !important;height: auto;}.subscription-arrow {max-width: none !important;height: auto;z-index: 1000 !important;}.avatar-arrow {max-width: none !important;height: auto;z-index: 1000 !important;}@keyframes drawSubscriptionArrow {0% {stroke-opacity: 0;stroke-dashoffset: 1;}5% {stroke-opacity: 1;}100% {stroke-opacity: 1;stroke-dashoffset: 0;}}@keyframes drawAvatarArrow {0% {stroke-opacity: 0;stroke-dashoffset: 1;}5% {stroke-opacity: 1;}100% {stroke-opacity: 1;stroke-dashoffset: 0;}}.subscription-arrow path {animation: drawSubscriptionArrow 1.2s ease-out forwards;}.avatar-arrow path {animation: drawAvatarArrow 1.2s ease-out forwards;}.current-about span {display: inline-block;max-width: 30ch;word-break: break-word;overflow-wrap: break-word;white-space: normal;line-height: 1.5;}.subscription-tooltip {z-index: 10000;}.avatar-tooltip {z-index: 10000;}@media (min-width: 768px) {.invite-code-box {margin-top: -150px !important;}.dashboard-grid {margin-top: -20px;}}.payment-grid {display: grid;grid-template-columns: repeat(4, 1fr);gap: 12px;margin: 20px 0;}.payment-card {position: relative;isolation: isolate;user-select: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;}.payment-card * {user-select: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;}.payment-card img {-webkit--khtml--moz--o-pointer-events: none;}.payment-card::before {content: '';position: absolute;inset: -2px;border-radius: 10px;background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc, #a855f7, #8b5cf6);opacity: 0;transition: opacity 0.3s ease;pointer-events: none;z-index: -1;}.payment-card::after {content: '';position: absolute;inset: 0;border-radius: 8px;background: #1a1c23;pointer-events: none;z-index: -1;}.payment-card > * {position: relative;z-index: 1;}.payment-card:hover::before {opacity: 1;}.payment-card:hover {transform: translateY(-2px);border-color: transparent;}.payment-card-disabled {pointer-events: none;}.payment-card-disabled:hover {transform: none;border-color: #3a3735;}.payment-card-disabled:hover::before {opacity: 0;}@media (max-width: 1024px) {.payment-grid {grid-template-columns: repeat(3, 1fr) !important;}}@media (max-width: 768px) {.payment-card {min-height: 120px !important;}.payment-grid {grid-template-columns: repeat(2, 1fr) !important;}}@media (max-width: 400px) {.payment-grid {grid-template-columns: 1fr !important;}}
/*account-custom.css*/
#avatarCropModal{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,0.8);display:none;}
.crop-modal-content{background:#22242c;margin:5% auto;padding:20px;border:1px solid #ffffff59;width:80%;max-width:700px;border-radius:8px;position:relative;}
.crop-modal-content .close{position:absolute;top:10px;right:10px;color:#ffffff;font-size:24px;cursor:pointer;opacity:0.7;transition:opacity 0.3s ease;}
.crop-modal-content .close:hover{opacity:1;}
#imageContainer{width:100%;height:400px;margin-bottom:20px;}
#croppingImage{max-width:100%;max-height:100%;}
#cropButton{padding:12px 20px;background:linear-gradient(to bottom,#937341,#7a5c2e);color:white;border:none;border-radius:4px;cursor:pointer;width:100%;}
form input:focus{outline:none;box-shadow:none;}
.action-buttons button{outline:none;box-shadow:none;}
.donate-center{display:flex;justify-content:center;margin-top:35px;}
.no-spinners{-moz-appearance:textfield;appearance:textfield;}
.about-textarea-status{width:100%;height:38px;border-radius:8px;border:1px solid #333;background:#18191c;color:#fff;padding:10px 14px;font-size:15px;line-height:1.2;box-sizing:border-box;resize:none;display:inline-block;font-family:inherit;transition:border-color 0.2s,box-shadow 0.2s;}
.about-textarea-status::placeholder{color:#fff;opacity:1;}
.about-textarea-status:focus{border-color:#937341;box-shadow:0 0 0 2px rgba(147,115,65,0.3);outline:none;}
.form-control::placeholder{color:#fff;opacity:1;font-size:15px;font-family:inherit;font-weight:400;letter-spacing:0;}
.form-control:focus{border-color:#937341;box-shadow:0 0 0 2px rgba(147,115,65,0.3);outline:none;}
.freekassa-block{display:flex;flex-direction:column;align-items:center;width:100%;}
#freekassa-form input[type="number"]::placeholder{color:#b1997f;opacity:1;font-size:16px;}
#freekassa-form input[type="number"]:focus{border-color:#ffd700;outline:none;box-shadow:0 0 0 2px #ffd70033;}
.no-spinners{-moz-appearance:textfield;appearance:textfield;}

/* ============================================
   Стили из Vue компонента Account/Index.vue
   Вынесено для оптимизации загрузки страницы
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #22242c;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

/* Общий контейнер — по ширине колонки ЛК (.dashboard-content-wrapper), паддинги как у --lk-column-padding-x */
.account-content-top {
    --account-content-max-width: 100%;
    --account-content-padding: var(--lk-column-padding-x, 20px);
    max-width: var(--account-content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 40px var(--account-content-padding) 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Обложка сразу под мобильной шапкой — убираем верхние отступы .nk-content */
    body:has(.account-content-top) .nk-content {
        padding-top: 0 !important;
    }
    body:has(.account-content-top) .nk-content-body,
    body:has(.account-content-top) .nk-content-inner {
        margin-top: 0 !important;
    }
    body:has(.account-content-top) .nk-content > .container.wide-xl.dashboard-main-container,
    body:has(.account-content-top) .nk-content > .dashboard-main-container {
        margin-top: 0 !important;
    }
    /* На странице профиля — контент прижат к краям, без боковых отступов */
    body:has(.account-content-top) .dashboard-content-wrapper,
    body:has(.account-content-top) .container.wide-xl.dashboard-main-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
    /* Отступ только под высоту шапки — обложка сразу под ней */
    .account-content-top {
        --account-content-padding: 0;
        padding: var(--dashboard-header-height, 60px) 0 0 0;
    }
    /* Лента и сайдбар — на всю ширину, без боковых полей (единая колонка с шапкой) */
    body:has(.account-content-top) .posts-section-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 0 !important;
    }
    body:has(.account-content-top) .sidebar-section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body:has(.account-content-top) .sidebar-section .wow-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.account-content-width {
    /* для posts-section-wrapper — убирает дублирование, контейнер уже ограничен родителем */
    max-width: 100%;
    padding: 0;
}

/* Лента + правая колонка: общий flex; пропорции и ширина сайдбара — от 1025px ниже */
body:has(.account-content-top) .posts-section-wrapper.account-content-width {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}
body:has(.account-content-top) .posts-section-wrapper .posts-section {
    flex: 1 1 0;
    min-width: 0;
}

/* Обложка профиля — весь блок (фон контейнера + обложка) ограничен account-content-top */
.profile-header-wrapper {
    position: relative;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1c23;
}

.profile-page-user-id {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    color: rgba(232, 234, 237, 0.92);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    user-select: text;
}

html[data-dashboard-theme="light"] body:has(.account-content-top) .profile-page-user-id {
    color: rgba(75, 85, 99, 0.92);
    text-shadow: none;
}
@media (min-width: 769px) {
    .profile-header-wrapper {
        border: 1px solid rgba(148, 163, 184, 0.22);
    }
    .profile-actions,
    .profile-actions-fixed {
        margin-top: 50px;
    }
    .action-buttons.action-buttons-no-wrap {
        margin-top: 50px;
    }
}

.profile-cover {
    width: 100%;
    height: 150px;
    background-color: #2a2a2e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 12px 12px 0 0;
}

/* ПК: обложка выше (после базового правила, чтобы не перебивалось; мобильная — 220px в @media max-width 768) */
@media (min-width: 769px) {
    .profile-cover {
        height: 200px;
    }
}

.profile-cover-change-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-cover:hover .profile-cover-change-wrapper,
.profile-cover.profile-cover-dropdown-open .profile-cover-change-wrapper {
    opacity: 1;
}

.profile-cover-change-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-cover-change-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.7);
}

.profile-cover-change-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Выпадающее меню при наведении на «Изменить обложку» */
.profile-cover-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 220px;
    background: rgba(34, 36, 44, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 100;
}

.profile-cover-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.profile-cover-dropdown-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.profile-cover-dropdown-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-cover-dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #ffffff;
    opacity: 1;
    filter: none;
}

.profile-cover-dropdown-item:hover:not(:disabled) .profile-cover-dropdown-icon {
    color: #fff;
    opacity: 1;
    filter: none;
}

.profile-header-wrapper .profile-header {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    /* Мобильный профиль: одна сплошная колонка без скруглений каркаса и без визуальных разрывов между блоками */
    .profile-header-wrapper {
        padding: 0 !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
        background: #22242c !important;
        box-shadow: none !important;
        border: none !important;
    }
    .profile-cover {
        height: 220px;
        border-radius: 0 !important;
    }

    .profile-header-wrapper .profile-header {
        position: relative;
        margin-top: -50px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 20px 16px;
        padding-top: 0;
        background: #22242c;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }
    /* Аватар по центру — перекрывает обложку сверху, контент снизу */
    .profile-header-wrapper .avatar-container {
        align-items: center !important;
        margin: -48px 0 12px 0 !important;
        order: -1;
    }
    .profile-header-wrapper .avatar-container .user-avatar {
        width: 126px;
        height: 126px;
    }
    /* Круг под аватаром — цвет как у фона карточки профиля */
    .profile-header-wrapper .avatar-container .user-avatar::before {
        background: #22242c !important;
    }
    .profile-header-wrapper .profile-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .profile-header-wrapper .user-info,
    .profile-header-wrapper .user-info-shrinkable {
        margin-right: 0;
        text-align: center;
        align-items: center;
    }
    .profile-header-wrapper .action-buttons {
        margin-top: 12px;
    }
    /* Убрать грид между карточкой профиля и вкладками */
    body:has(.account-content-top) .dashboard-grid {
        display: none !important;
    }
    body:has(.account-content-top) .posts-section-wrapper {
        margin-top: 0 !important;
    }
    /* Посты — как 1 карточка без разрывов */
    body:has(.account-content-top) .post-item {
        margin-bottom: 0 !important;
    }
    body:has(.account-content-top) .post-item:not(:first-child) {
        border-top: 1px solid rgba(148, 163, 184, 0.15);
        padding-top: 12px;
    }
    body:has(.account-content-top) .posts-section .wow-container {
        border: none !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        background: #22242c !important;
    }
    body:has(.account-content-top) .posts-section .wow-header {
        border-radius: 0 !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
    body:has(.account-content-top) .posts-section .wow-content {
        border-radius: 0 !important;
    }
    body:has(.account-content-top) .posts-section > .wow-container {
        margin-bottom: 0 !important;
    }
    body:has(.account-content-top) .posts-section .photos-block-desktop .wow-header,
    body:has(.account-content-top) .posts-section .account-tabs-unified .account-tabs-with-content {
        box-shadow: none !important;
    }
    body:has(.account-content-top) .sidebar-section .wow-container {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #22242c !important;
        overflow: visible !important;
    }
    body:has(.account-content-top) .sidebar-section .wow-header {
        border-radius: 0 !important;
        border-bottom: none !important;
    }
    body:has(.account-content-top) .sidebar-section .wow-content {
        border-radius: 0 !important;
    }
    body:has(.account-content-top) .account-tabs-unified {
        border-radius: 0 !important;
    }
}

/* Модальное окно добавления обложки */
.profile-cover-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-cover-modal {
    background: #22242c;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.profile-cover-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.14);
    color: #dc3545;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.profile-cover-modal-close:hover {
    color: #ff5c6c;
    background: rgba(220, 53, 69, 0.26);
}

.profile-cover-modal-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.profile-cover-modal-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.profile-cover-modal-icon {
    width: 48px;
    height: 48px;
    color: #71aaeb;
}

.profile-cover-modal-heading {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.profile-cover-modal-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.5;
}

.profile-cover-upload-zone {
    border: 2px dashed #4a90e2;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 16px;
}

.profile-cover-upload-zone:hover {
    background: rgba(74, 144, 226, 0.08);
    border-color: #5a9ff2;
}

.profile-cover-upload-plus {
    display: block;
    font-size: 48px;
    color: #4a90e2;
    line-height: 1;
    margin-bottom: 12px;
}

.profile-cover-upload-text {
    font-size: 15px;
    color: #fff;
}

.profile-cover-modal-recommendations {
    font-size: 13px;
    color: #9aa0a6;
    line-height: 1.6;
}

.profile-cover-modal-recommendations p {
    margin: 0 0 4px;
}

.profile-cover-modal-recommendations p:last-child {
    margin-bottom: 0;
}

/* Модальное окно редактирования обложки (обрезка, как в VK) */
.profile-cover-crop-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-cover-crop-modal {
    background: #22242c;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 720px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.profile-cover-crop-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.14);
    color: #dc3545;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.profile-cover-crop-modal-close:hover {
    color: #ff5c6c;
    background: rgba(220, 53, 69, 0.26);
}

.profile-cover-crop-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.profile-cover-crop-modal-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.5;
}

.profile-cover-crop-container {
    max-width: 100%;
    max-height: 55vh;
    margin-bottom: 20px;
    overflow: hidden;
}

.profile-cover-crop-container img {
    max-width: 100%;
}

.profile-cover-crop-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-cover-crop-footer-right {
    display: flex;
    gap: 12px;
}

.profile-cover-crop-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}

.profile-cover-crop-btn-preview {
    background: #3d3d3f;
    color: #fff;
}

.profile-cover-crop-btn-preview:hover {
    background: #4a4a4c;
}

.profile-cover-crop-btn-cancel {
    background: #3d3d3f;
    color: #9aa0a6;
}

.profile-cover-crop-btn-cancel:hover {
    background: #4a4a4c;
    color: #fff;
}

.profile-cover-crop-btn-set {
    background: #4a90e2;
    color: #fff;
}

.profile-cover-crop-btn-set:hover:not(:disabled) {
    background: #5a9ff2;
}

.profile-cover-crop-btn-set:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Аватар: модалка обрезки использует те же стили, что и обложка */
.avatar-crop-modal {
    max-width: 560px;
}

.avatar-crop-container {
    height: 400px;
}

/* Стили для модального окна редактирования профиля */
.profile-edit-modal {
    background: rgba(34, 36, 44, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    max-width: 550px !important;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Опускаем модальное окно редактирования профиля на 88px для мобильной версии */
@media (max-width: 768px) {
    .profile-edit-modal {
        margin-top: calc(5% + 88px) !important;
    }
}

.profile-edit-header {
    background: rgba(34, 36, 44, 0.92);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    position: relative;
}

.profile-edit-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.profile-edit-form {
    padding: 20px;
}

.profile-edit-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.profile-edit-row label {
    flex: 0 0 100px;
    color: #888;
    font-size: 14px;
    text-align: left;
}

.profile-edit-row input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.profile-edit-row input:focus {
    border-color: #666;
}

.profile-edit-row input::placeholder {
    color: #555;
}

.profile-edit-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.profile-save-btn {
    background: #333;
    border: none;
    border-radius: 8px;
    padding: 10px 32px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-save-btn:hover {
    background: #444;
}

.profile-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #c7c5b3;
}

.form-control {
    width: 100%;
    padding: 8px;
    background: #1a1c23;
    border: 1px solid #3a3735;
    border-radius: 4px;
    color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #937341;
}

.btn-wow {
    background: linear-gradient(135deg, #937341, #b8860b);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-wow:hover {
    background: linear-gradient(135deg, #b8860b, #937341);
}

.btn-wow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-gold {
    background: linear-gradient(135deg, #937341, #b8860b);
}

/* Обводка аватара для VIP пользователей */
.user-avatar.vip-avatar {
    border: 3px solid #a970ff !important;
    box-shadow: 0 0 10px rgba(169, 112, 255, 0.5) !important;
}

.user-avatar.subscribed-avatar {
    border: none !important;
    box-shadow: none !important;
}

.user-avatar.inactive-avatar {
    border: none !important;
    box-shadow: none !important;
}

/* Стили для модального окна обрезки */
.crop-modal-content {
    background: #22242c !important;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #ffffff59;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
}

.crop-modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.crop-modal-content .close:hover {
    opacity: 1;
}

#imageContainer {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    overflow: hidden;
}

#croppingImage {
    max-width: 100%;
    max-height: 100%;
    display: block;
}


/* Стили для меню при наведении на аватар */
.avatar-container {
    position: relative;
}

/* Круг #1a1c23 привязан к аватару, выступает на 15px со всех сторон, ниже кольца подписки */
.profile-header-wrapper .avatar-container .user-avatar {
    position: relative;
    overflow: visible;
}
.profile-header-wrapper .avatar-container .user-avatar::before {
    content: '';
    position: absolute;
    left: -15px;
    top: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    background: #1a1c23;
    border-radius: 50%;
    z-index: -1;
}

/* Стеклянный перелив на аватаре профиля (как shimmer у progress-bar) */
.profile-header-wrapper .avatar-container .user-avatar__frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.profile-header-wrapper .avatar-container .user-avatar__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-wrapper .avatar-container .user-avatar-glass-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.profile-header-wrapper .avatar-container .user-avatar-glass-shine::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.04) 38%,
        transparent 55%,
        rgba(255, 255, 255, 0.07) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.profile-header-wrapper .avatar-container .user-avatar-glass-shine::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -120%;
    width: 90%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.34) 50%,
        transparent 65%
    );
    transform: skewX(-18deg);
    animation: profile-avatar-glass-shimmer 3.2s ease-in-out infinite;
}

@keyframes profile-avatar-glass-shimmer {
    0%, 72% {
        left: -120%;
    }
    100% {
        left: 130%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-header-wrapper .avatar-container .user-avatar-glass-shine::after {
        animation: none;
        opacity: 0;
    }
}

.profile-privacy-notice {
    max-width: 900px;
    margin: 8px auto 0;
    box-sizing: border-box;
}

.profile-privacy-notice__card {
    background: rgba(34, 36, 44, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    color: #bdbdbd;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

.avatar-hover-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(34, 36, 44, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 180px;
    z-index: 1000;
    
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.avatar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: left;
    width: 100%;
    border-radius: 6px;
}

.avatar-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.avatar-menu-item svg {
    flex-shrink: 0;
    color: #b0b0b0;
    transition: color 0.2s;
}

.avatar-menu-item:hover svg {
    color: #ffffff;
}

.avatar-menu-item span {
    flex: 1;
}

/* Стили для постов */
.tab-button.active {
    color: #fff !important;
    border-bottom-color: #0074e0 !important;
}

.create-post-center {
    display: flex;
    justify-content: center;
    margin: 0 0 20px 0;
}

.post-item {
    transition: none !important;
}

.post-item:hover {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.post-avatar.vip-avatar {
    border-color: #a970ff !important;
    box-shadow: 0 0 8px rgba(169, 112, 255, 0.5) !important;
}

.post-avatar.subscribed-avatar {
    border-color: #937341 !important;
    box-shadow: none !important;
}

.post-avatar.inactive-avatar {
    border-color: transparent !important;
    box-shadow: none !important;
}

.post-images img:hover {
    opacity: 1;
    transform: none;
    transition: none;
}

.avatar-add-icon {
    transition: transform 0.2s;
}

.avatar-add-icon:hover {
    transform: scale(1.1);
}

/* Стили для боковых контейнеров */
.wow-container {
    background: #22242c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 20px;
}

.wow-header {
    background-color: rgba(34, 36, 44, 0.92);
    background-size: cover;
    background-position: center;
    /*border-bottom: 1px solid rgba(148, 163, 184, 0.22);*/
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    /*box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);*/
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wow-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.wow-content {
    padding: 16px;
}

/* Уменьшить расстояние от вкладок (Стена, Фото, Музыка) до списка постов — вплотную */
.wow-container:has(.account-tabs-row) .wow-content {
    padding-top: 0 !important;
}

/* Вкладки (Стена, Фото, Музыка) — начало по левому краю аватара, без выделения */
.account-tabs-unified .account-tabs-with-content {
    padding-left: 20px; /* как profile-header padding */
}
@media (max-width: 767px) {
    .account-tabs-unified .account-tabs-with-content {
        padding: 12px 12px 2px;
    }
}
.account-tab-label {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #fff !important;
}

.posts-list {
    margin-top: 0;
}

.sidebar-scroll-grid {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

/* Друзья: до 12 шт. (3 ряда), фиксированный max-height давал «лишний» скролл ~на пару пикселей */
.friends-grid.sidebar-scroll-grid {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}
.characters-grid.sidebar-scroll-grid {
    max-height: none;
    overflow: visible;
}

.achievements-grid.sidebar-scroll-grid {
    max-height: 188px;
}

/* Стили для друзей ТОЛЬКО в сайдбаре на странице аккаунта (line-height + padding — дескендеры g,y,q не обрезаются) */
.sidebar-section .friend-name {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    padding-bottom: 3px;
    color: #bdbdbd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    max-width: 100%;
}

.sidebar-section .character-name.sidebar-character-name {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    padding-bottom: 3px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-section {
    --sidebar-cell-size: 56px;
}

/* ПК (≥1025px): лента / правая колонка ≈ 60% / 40% как в VK; при свернутом левом меню — правый блок ещё шире */
@media (min-width: 1025px) {
    body:has(.account-content-top) .posts-section-wrapper.account-content-width {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body:has(.account-content-top) .posts-section-wrapper .posts-section {
        flex: 3 1 0 !important;
        min-width: 0 !important;
    }
    body:has(.account-content-top) .posts-section-wrapper .sidebar-section {
        flex: 2 1 0 !important;
        width: auto !important;
        min-width: 340px !important;
        max-width: 400px !important;
    }
    html[data-sidebar-collapsed="true"] body:has(.account-content-top) .posts-section-wrapper .sidebar-section {
        min-width: 360px !important;
        max-width: 460px !important;
    }
    body:has(.account-content-top) .sidebar-section {
        --sidebar-cell-size: 76px;
    }
    body:has(.account-content-top) .sidebar-section .friend-name,
    body:has(.account-content-top) .sidebar-section .character-name.sidebar-character-name {
        font-size: 13px;
        line-height: 1.35;
        margin-top: 9px;
        padding-bottom: 3px;
    }
    body:has(.account-content-top) .sidebar-section .sidebar-wow-content {
        padding: 8px 14px 16px 14px !important;
    }
    body:has(.account-content-top) .sidebar-section .sidebar-scroll-grid {
        gap: 12px !important;
    }
    body:has(.account-content-top) .sidebar-section .friend-item .online-dot {
        width: 16px !important;
        height: 16px !important;
        bottom: 4px !important;
        right: 4px !important;
        border-width: 2px !important;
    }
}

.achievement-icon {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    transition: opacity 0.2s;
    border-radius: 6px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.4)) !important;
}

.achievement-icon:hover {
    opacity: 0.8;
}

/* Стили для друзей ТОЛЬКО в сайдбаре на странице аккаунта */
.sidebar-section .friend-avatar,
.friends-grid .friend-avatar {
    width: var(--sidebar-cell-size) !important;
    height: var(--sidebar-cell-size) !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid transparent !important;
    display: block !important;
    margin: 0 auto !important;
}

.sidebar-section .friend-avatar.vip-avatar,
.friends-grid .friend-avatar.vip-avatar {
    border-color: #a970ff !important;
    box-shadow: 0 0 8px rgba(169, 112, 255, 0.5) !important;
}

.sidebar-section .friend-avatar.subscribed-avatar,
.friends-grid .friend-avatar.subscribed-avatar {
    border-color: transparent !important;
    box-shadow: none !important;
}

.sidebar-section .friend-avatar.inactive-avatar,
.friends-grid .friend-avatar.inactive-avatar {
    border-color: transparent !important;
    box-shadow: none !important;
}

.sidebar-section .friend-item,
.friends-grid .friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.sidebar-section .friend-item a,
.friends-grid .friend-item a {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.character-icon-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.character-race-icon {
    width: var(--sidebar-cell-size) !important;
    height: var(--sidebar-cell-size) !important;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(26, 28, 35, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 4px;
    box-sizing: border-box;
}

.character-level-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
    z-index: 10;
}

/* Модалка достижения */
.achievement-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.achievement-modal-overlay.show {
    display: flex;
}

.achievement-modal-card {
    background: rgba(34, 36, 44, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.achievement-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    margin-left: 0;
    background: rgba(220, 53, 69, 0.14);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #dc3545;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    z-index: 100;
}

.achievement-modal-close:hover {
    color: #ff5c6c;
    background: rgba(220, 53, 69, 0.26);
}

.achievement-modal-content {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.achievement-modal-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    grid-column: 2;
    min-width: 0;
    justify-self: center;
    width: 100%;
}

.achievement-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: contain;
}

.achievement-modal-name {
    color: #937341;
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.achievement-modal-description {
    color: #e5e7eb;
    font-size: 1em;
    text-align: center !important;
    margin: 0 auto;
    line-height: 1.5;
    width: 100%;
}

.achievement-modal-nav {
    flex-shrink: 0;
    background: #2d2f38;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #9aa0a6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    padding: 0;
    font-size: 16px;
}

.achievement-modal-nav:hover {
    background: #3a3c47;
    color: #bdbdbd;
    border-color: rgba(148, 163, 184, 0.35);
}

.achievement-modal-nav-left {
    grid-column: 1;
    justify-self: center;
}

.achievement-modal-nav-right {
    grid-column: 3;
    justify-self: center;
}

/* Скрытая стрелка остаётся в сетке — контент по центру не смещается */
.achievement-modal-nav.hidden {
    visibility: hidden;
    pointer-events: none;
}

/* Медиа-запросы для модального окна оплаты */
@media (max-width: 430px) {
    .modal-content[style*="zoom: 90%"] {
        padding: 12px !important;
        max-width: 95vw !important;
        zoom: 0.85 !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] {
        padding: 12px !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] > div[style*="text-align: center"] {
        margin-bottom: 10px !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] p {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] div[style*="color: #4caf50"] {
        font-size: 11px !important;
        margin-top: 3px !important;
        margin-bottom: 0 !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] > div[style*="height: 2px"] {
        margin: 6px auto !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] > div[style*="background:#1a1c23"] {
        padding: 10px !important;
        margin-top: 12px !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] > div[style*="background:#1a1c23"] > div[style*="display: flex"] {
        margin-bottom: 6px !important;
        gap: 6px !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] > div[style*="background:#1a1c23"] > div[style*="display: flex"] > div[style*="font-size: 18px"] {
        font-size: 14px !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] > div[style*="background:#1a1c23"] > div[style*="display: flex"] > div[style*="color: #c7c5b3"] {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    .modal-content[style*="zoom: 90%"] > div[style*="padding: 25px"] > div[style*="background:#1a1c23"] > div[style*="display: flex"] > div[style*="color: #c7c5b3"] > span {
        font-size: 12px !important;
    }
    .modal-content[style*="zoom: 90%"] .close {
        font-size: 20px !important;
        top: 8px !important;
        right: 8px !important;
    }
    .modal-content[style*="zoom: 90%"] {
        margin-top: calc(15% + 30px) !important;
    }
}

@media (min-width: 430px) and (max-width: 466px) {
    .modal-content[style*="zoom: 90%"] {
        margin-top: calc(15% + 30px) !important;
    }
}

@media (min-width: 767px) and (max-width: 992px) {
    .modal-content[style*="zoom: 90%"] {
        margin-top: calc(15% + 30px) !important;
    }
}

@media (max-width: 768px) {
    .achievement-modal-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .posts-section-wrapper {
        flex-direction: column !important;
    }
    .sidebar-section {
        width: 100% !important;
    }
}

/* Мобилка: аватарки в правой колонке профиля +15% к базовым 56px → 64px; ники чуть крупнее и с запасом по высоте строки */
@media (max-width: 768px) {
    body:has(.account-content-top) .sidebar-section {
        --sidebar-cell-size: 64px;
    }
    body:has(.account-content-top) .sidebar-section .friend-name,
    body:has(.account-content-top) .sidebar-section .character-name.sidebar-character-name {
        font-size: 12.5px;
        line-height: 1.4;
        margin-top: 7px;
        padding-bottom: 3px;
    }

    /* Только страница профиля аккаунта: 4 карточки в один ряд — остальных не показываем */
    .sidebar-section.account-profile-sidebar-grids .friends-grid.sidebar-scroll-grid .friend-item:nth-child(n + 5),
    .sidebar-section.account-profile-sidebar-grids .characters-grid.sidebar-scroll-grid > a:nth-child(n + 5) {
        display: none !important;
    }
}

/* Shared profile/community card, tabs, action buttons and modals */
.account-tabs-with-content {
    box-sizing: border-box;
    padding: 12px 20px 2px;
}

.account-tabs-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.account-tabs-row.account-tabs-row-vk {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1 1 auto;
}

.account-tab-vk {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    cursor: pointer !important;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s !important;
    color: #fff !important;
    background-color: transparent !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

.account-tab-vk .account-tab-label {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: inherit;
    text-transform: none;
}

.account-tab-gifts-count {
    margin-left: 6px;
    color: #9aa0a6;
    font-size: 13px;
    font-weight: 500;
}

.account-tab-vk.account-tab-btn--active {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.account-tab-vk:hover:not(.account-tab-btn--sealed):not(.account-tab-btn--active) {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.account-tabs-row-vk .account-tab-vk:first-child {
    margin-left: 0 !important;
}

.btn-tab-style,
.community-profile-action-btn,
.btn-name.btn-tab-style.create-post-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    border: none !important;
    transition: background-color 0.2s, color 0.2s !important;
}

.btn-tab-style:hover:not(:disabled),
.community-profile-action-btn:hover:not(:disabled),
.btn-name.btn-tab-style.create-post-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: #fff !important;
}

/* «Новая запись», «Опубликовать» и прочие create-post-btn — всегда серая .btn-tab-style, не синий градиент */
.btn-name.btn-tab-style.create-post-btn,
.btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1;
    transition: background-color 0.2s, color 0.2s !important;
}

.btn-name.btn-tab-style.create-post-btn:hover:not(:disabled),
.btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1;
}

.btn-name.btn-tab-style.create-post-btn:active:not(:disabled),
.btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):active:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1;
}

.btn-tab-style.create-post-btn--sealed:hover,
.community-profile-action-btn:disabled {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.community-profile-action-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
}

.community-profile-action-btn--active {
    background-color: rgba(255, 255, 255, 0.18) !important;
}

/* Подписаться — синий акцент; «Новая запись» / create-post-btn — серая .btn-tab-style */
.community-subscribe-btn--primary {
    background-color: #1a8eef !important;
    background-image: linear-gradient(165deg, #4eb2ff 0%, #1a8eef 42%, #0b6fd4 72%, #0450a2 100%) !important;
    color: #fff !important;
    border: none !important;
    text-shadow: none;
    transition: opacity 0.2s ease;
}

.community-subscribe-btn--primary:hover:not(:disabled) {
    opacity: 0.94;
    background-color: #1a8eef !important;
    background-image: linear-gradient(165deg, #4eb2ff 0%, #1a8eef 42%, #0b6fd4 72%, #0450a2 100%) !important;
    color: #fff !important;
}

.community-subscribe-btn--primary:active:not(:disabled) {
    opacity: 0.88;
}

.community-profile-buttons .community-subscribe-btn {
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    align-self: flex-end;
    padding-left: 14px !important;
    padding-right: 14px !important;
    white-space: nowrap;
}

.account-tab-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 260px;
    padding: 60px 20px;
    color: #9aa0a6;
    font-size: 16px;
    box-sizing: border-box;
}

.account-tab-empty .account-tab-empty__icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.account-tab-empty .account-tab-empty__text {
    margin: 0;
    font-size: 16px;
    color: #9aa0a6;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.account-tab-empty .account-tab-empty__sub {
    margin-top: 8px;
    font-size: 14px;
    color: #9aa0a6;
    opacity: 0.85;
}

.account-photo-viewer-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
    text-align: left;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

.account-photo-viewer-trigger img {
    pointer-events: none;
}

.account-photo-viewer-trigger:focus-visible {
    outline: 2px solid rgba(147, 115, 65, 0.85);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .photo-item,
    .photo-upload-slot {
        border-radius: 8px !important;
    }
}

.account-right-sidebar .wow-header h3 {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    color: #fff !important;
    font-family: inherit !important;
    margin: 0 !important;
    letter-spacing: normal !important;
}

@media (max-width: 767.98px) {
    .account-right-sidebar .wow-header h3 {
        font-size: 15px !important;
    }
}

.create-post-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Выпадающее над «Опубликовать» — вид как окно под аватаром («Изменить фото» и т.д.), носик вниз к кнопке */
.publish-actions-menu-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    z-index: 24;
}

.publish-actions-menu-anchor .avatar-hover-menu.profile-cover-dropdown {
    position: absolute;
    top: auto;
    bottom: calc(100% + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
    min-width: min(220px, 92vw);
    max-width: min(92vw, 280px);
    z-index: 100060;
    white-space: normal;
    overflow: visible !important;
    background: rgba(34, 36, 44, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Обводка носика «в сторону кнопки Опубликовать» — как 1px border у блока */
.publish-actions-menu-anchor .avatar-hover-menu.profile-cover-dropdown::before {
    content: none;
}

.publish-actions-menu-anchor .avatar-hover-menu.profile-cover-dropdown::after {
    content: none;
}

.create-post-actions-wrap--publish-hub .publish-actions-menu-anchor .profile-cover-dropdown-item:not(:last-of-type) {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.post-repost-embed {
    margin: 8px 0 12px;
}

.post-repost-source {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 0 10px;
    color: #e5e7eb;
    text-decoration: none;
    min-width: 0;
}

.post-repost-source:hover {
    color: #fff;
    text-decoration: none;
}

.post-repost-source:hover .post-repost-source__name {
    text-decoration: underline;
}

.post-repost-source__icon {
    width: 14px;
    height: 14px;
    color: #8b949e;
    flex-shrink: 0;
}

.post-repost-source__avatar,
.repost-modal-preview__avatar,
.repost-target-row__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-repost-source__avatar {
    width: 32px;
    height: 32px;
}

.post-repost-source__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.post-repost-source__name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-repost-source__date {
    color: #9aa0a6;
    font-size: 12px;
    white-space: nowrap;
}

.post-repost-text {
    margin-top: 12px;
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.post-repost-media {
    margin-top: 0;
}

.post-repost-media .account-wall-photo-trigger:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.post-repost-media-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 0 10px;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    background: rgba(15, 17, 24, 0.5);
}


.repost-modal-panel.message-modal.profile-edit-modal-inner {
    position: relative;
    width: 100%;
    max-width: min(560px, calc(100vw - 40px));
    padding: 22px;
    overflow: visible;
    background: rgba(34, 36, 44, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.repost-modal-preview {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: rgba(15, 17, 24, 0.48);
}

.repost-modal-preview__label {
    margin-bottom: 8px;
    color: #9aa0a6;
    font-size: 12px;
}

.repost-modal-preview__body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.repost-modal-preview__content {
    min-width: 0;
}

.repost-modal-preview__name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.repost-modal-preview__text {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repost-modal-comment {
    min-height: 74px !important;
    margin-top: 12px;
}

.repost-modal-section-title {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.repost-modal-tabs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.repost-modal-tabs button,
.repost-target-row {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 8px;
}

.repost-modal-tabs button {
    flex: 1;
    padding: 8px 10px;
    cursor: pointer;
}

.repost-modal-tabs button.active,
.repost-target-row--selected {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(148, 163, 184, 0.42);
}

.repost-search-input {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    color: #fff;
    background: #1a1c23;
    border: 1px solid #3a4653;
    border-radius: 8px;
    box-sizing: border-box;
}

.repost-targets-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 250px;
    margin-top: 10px;
    overflow-y: auto;
}

.repost-target-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    cursor: pointer;
    text-align: left;
}

.repost-target-row--wall {
    margin-top: 12px;
    box-sizing: border-box;
}

.repost-target-row__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repost-target-row__check {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex: 0 0 16px;
    background-color: #41ad49;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cg%3E%3Cpolygon points='434.8,49 174.2,309.7 76.8,212.3 0,289.2 174.1,463.3 196.6,440.9 196.6,440.9 511.7,125.8'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cg%3E%3Cpolygon points='434.8,49 174.2,309.7 76.8,212.3 0,289.2 174.1,463.3 196.6,440.9 196.6,440.9 511.7,125.8'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 0 4px rgba(65, 173, 73, 0.55));
}

.repost-targets-empty {
    padding: 18px 10px;
    color: #9aa0a6;
    text-align: center;
}

.repost-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.repost-modal-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


@media (max-width: 767.98px) {
    .wow-container.account-tabs-unified,
    .wow-container.account-tabs-unified .account-tabs-with-content,
    .wow-container.account-tabs-unified .account-tabs-header-row,
    .wow-container.account-tabs-unified .create-post-actions-wrap--publish-hub,
    .wow-container.account-tabs-unified .create-post-actions-wrap--send-gift {
        position: relative;
        z-index: 40;
        overflow: visible !important;
    }

    .wow-container.account-tabs-unified .create-post-actions-wrap--publish-hub .publish-actions-menu-anchor {
        z-index: 400 !important;
    }

    /* Меню «Создать запись» / «Граффити»: разделитель между пунктами */
    .create-post-actions-wrap--publish-hub .publish-actions-menu-anchor .avatar-hover-menu.profile-cover-dropdown {
        gap: 0;
        min-width: min(275px, 94vw);
        max-width: min(94vw, 350px);
        z-index: 401 !important;
        border-color: rgba(148, 163, 184, 0.25);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .community-wall-create-actions .publish-actions-menu-anchor .avatar-hover-menu.profile-cover-dropdown {
        top: calc(100% + 10px);
        bottom: auto;
    }

    .create-post-actions-wrap--publish-hub .publish-actions-menu-anchor .profile-cover-dropdown-item {
        padding: 18px 22px;
        font-size: 16px;
    }

    .create-post-actions-wrap--publish-hub .publish-actions-menu-anchor .profile-cover-dropdown-item:not(:last-of-type) {
        border-bottom-color: rgba(148, 163, 184, 0.25);
    }

}

.create-post-btn--sealed {
    opacity: 0.55;
    cursor: not-allowed !important;
}

.message-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100080;
    padding: 20px;
}

.transfer-modal-content {
    background: #22242c;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a4653;
    max-width: 450px;
    width: 90%;
}

.transfer-modal-content-with-close {
    position: relative;
}

.modal-close-btn-outside {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    margin-left: 0;
    background: rgba(220, 53, 69, 0.14);
    border: none;
    color: #dc3545;
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0;
    transition: color 0.2s, background 0.2s;
}

.modal-close-btn-outside:hover {
    color: #ff5c6c;
    background: rgba(220, 53, 69, 0.26);
}

/* Общая модалка списка реакций (профиль / сообщества / новости) */
.likes-users-modal {
    max-width: 520px !important;
    width: min(92vw, 520px) !important;
    padding: 0 !important;
    max-height: min(82vh, 700px);
    display: flex;
    flex-direction: column;
}

.likes-users-modal__header {
    padding: 20px 24px 12px;
    border-bottom: none;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #fff;
}

.likes-users-modal__list {
    overflow-y: auto;
    padding: 0 24px 16px;
}

.likes-users-modal__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.likes-users-modal__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.likes-users-modal__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.likes-users-modal__heart {
    font-size: 20px;
    line-height: 1;
    color: #ff3347;
}

.likes-users-modal__name {
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
}

.likes-users-modal__footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #9ca3af;
    font-size: 13px;
}

.message-modal {
    background: #2d2f38;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.message-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #3a4653;
}

.message-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.message-modal .go-to-dialog-link {
    color: #71aaeb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.message-modal .go-to-dialog-link:hover {
    color: #5a8fd4;
    text-decoration: underline !important;
}

/* «Подробнее» в карточке профиля: подчёркивание при наведении (cabinet переопределяет ссылки; тут только текст) */
.profile-header-wrapper button.details-btn:hover span {
    text-decoration: underline !important;
}

.message-input-wrapper {
    margin-bottom: 20px;
}

.textarea-resize-wrap {
    position: relative;
}

/* Кастомная ручка ресайза — одна и та же на ПК и мобилке; нативный ::-webkit-resizer отключён через resize:none ниже */
.textarea-resize-handle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: calc(6px + env(safe-area-inset-right, 0px));
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    width: 36px;
    height: 36px;
    cursor: ns-resize;
    touch-action: none;
    color: rgba(255, 255, 255, 0.65);
    pointer-events: auto;
    z-index: 50;
    box-sizing: border-box;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.textarea-resize-handle-mobile .textarea-resize-handle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.textarea-resize-wrap .message-textarea,
.textarea-resize-wrap .profile-form-about-textarea {
    padding-bottom: 44px;
    resize: none !important;
}

/* Строка «О себе» в модалке профиля: обёртка ручки — тянется как второе поле в .profile-form-row */
.profile-form-about-textarea-wrap {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

.message-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    background: #1a1c23;
    border: 1px solid #3a4653;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.posts-tabs-content .message-textarea,
.comment-card .message-textarea {
    border-radius: 4px !important;
    resize: vertical !important;
    max-height: 220px !important;
    overflow-y: auto !important;
}

.posts-tabs-content .textarea-resize-wrap .message-textarea,
.comment-card .textarea-resize-wrap .message-textarea {
    resize: none !important;
}

.message-textarea:focus {
    border-color: #71aaeb;
}

.message-textarea::placeholder {
    color: #777;
}

.message-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.send-message-btn {
    padding: 10px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.send-message-btn:hover:not(:disabled) {
    background: #1a1a1a;
}

.send-message-btn.profile-tab-action-btn {
    font-weight: 400;
}

/* «Отправить» / «Сохранить» под постами — тёмная тема (светлая: чёрные кнопки в light-theme.css) */
.wall-comment-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    opacity: 1 !important;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.wall-comment-action-btn--compact {
    padding: 6px 12px;
    border-radius: 6px;
}

.wall-comment-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18) !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(148, 163, 184, 0.38) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.wall-comment-action-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.22) !important;
    background-color: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(148, 163, 184, 0.42) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.wall-comment-action-btn:disabled,
.wall-comment-action-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.38) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

/* Профиль / сообщества / граффити, тёмная тема: «Сохранить» / «Отправить» — как «Опубликовать» (.btn-tab-style) */
html[data-dashboard-theme="dark"] body:has(.account-content-top) .profile-tab-action-btn,
html[data-dashboard-theme="dark"] body:has(.community-profile-page) .profile-tab-action-btn,
html[data-dashboard-theme="dark"] .graffiti-modal-footer .profile-tab-action-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 400 !important;
    transition: background-color 0.2s, color 0.2s !important;
}

html[data-dashboard-theme="dark"] body:has(.account-content-top) .profile-tab-action-btn:hover:not(:disabled),
html[data-dashboard-theme="dark"] body:has(.community-profile-page) .profile-tab-action-btn:hover:not(:disabled),
html[data-dashboard-theme="dark"] .graffiti-modal-footer .profile-tab-action-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
}

html[data-dashboard-theme="dark"] body:has(.account-content-top) .profile-tab-action-btn:active:not(:disabled),
html[data-dashboard-theme="dark"] body:has(.community-profile-page) .profile-tab-action-btn:active:not(:disabled),
html[data-dashboard-theme="dark"] .graffiti-modal-footer .profile-tab-action-btn:active:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
}

html[data-dashboard-theme="dark"] body:has(.account-content-top) .profile-tab-action-btn:disabled,
html[data-dashboard-theme="dark"] body:has(.account-content-top) .profile-tab-action-btn:disabled:hover,
html[data-dashboard-theme="dark"] body:has(.community-profile-page) .profile-tab-action-btn:disabled,
html[data-dashboard-theme="dark"] body:has(.community-profile-page) .profile-tab-action-btn:disabled:hover,
html[data-dashboard-theme="dark"] .graffiti-modal-footer .profile-tab-action-btn:disabled,
html[data-dashboard-theme="dark"] .graffiti-modal-footer .profile-tab-action-btn:disabled:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.38) !important;
    border: none !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.send-message-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.send-message-btn--secondary {
    background: transparent;
    border: 1px solid #4a5568;
}

.send-message-btn--secondary:hover:not(:disabled) {
    background: rgba(90, 102, 120, 0.16);
    border-color: #5a6678;
}

.message-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    margin-left: 0;
    background: rgba(220, 53, 69, 0.14);
    border: none;
    color: #dc3545;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    z-index: 100;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 6px;
    padding: 0;
    transition: background 0.2s;
}

.message-modal-close-btn::before {
    content: '×';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: #dc3545;
    transition: color 0.2s;
    text-align: center;
    /* × визуально сидит ниже геометрического центра — поднимаем глобально */
    transform: translateY(-2px);
}

/* Крестик в разметке (не через ::before) — та же оптическая поправка */
.achievement-modal-close,
.modal-close-btn-outside,
.profile-cover-modal-close,
.profile-cover-crop-modal-close,
.crop-modal-close,
.transfer-modal-close {
    padding-bottom: 2px;
    box-sizing: border-box;
}

.message-modal-close-btn:hover {
    background: rgba(220, 53, 69, 0.26);
}

.message-modal-close-btn:hover::before {
    color: #ff5c6c;
    transform: translateY(-2px);
}

/* Панели модалок — крестик в правом верхнем углу внутри окна */
.message-modal-with-outside-close,
.message-modal.profile-edit-modal-inner,
.subscription-modal-panel,
.sub-topup-transfer-modal-content.profile-edit-modal-inner {
    position: relative;
}

/* Крестик угловой (модалка «Создать запись» и т.п.) — дублирует базовую позицию */
.message-modal-close-btn--corner {
    top: 12px;
    right: 12px;
    left: auto;
    margin-left: 0;
}

/* Редактирование записи (профиль + лента сообществ): на ПК ~560px */
.message-modal-overlay--edit-post .community-edit-post-inner.message-modal.profile-edit-modal-inner,
.message-modal-overlay--edit-post .edit-post-modal-panel.message-modal.profile-edit-modal-inner {
    position: relative;
}

@media (min-width: 769px) {
    .message-modal-overlay--edit-post .community-edit-post-inner.message-modal.profile-edit-modal-inner,
    .message-modal-overlay--edit-post .edit-post-modal-panel.message-modal.profile-edit-modal-inner {
        width: 100%;
        max-width: min(560px, calc(100vw - 80px));
        flex: 0 1 auto !important;
    }
}

/* Создать пост (профиль / сообщество): тот же крестик справа за пределами на ПК */
.create-post-modal-panel.message-modal.profile-edit-modal-inner {
    position: relative;
    box-sizing: border-box;
    max-width: min(550px, calc(100vw - 40px));
    background: rgba(34, 36, 44, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.create-post-modal-panel .create-post-char-counter {
    color: #bdbdbd;
    font-size: 12px;
}

.create-post-modal-panel .create-post-field-label {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 6px;
}

.create-post-modal-panel .create-post-field-hint {
    color: #9aa0a6;
    font-size: 12px;
    margin-top: 5px;
}

.profile-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.profile-form-row label {
    flex: 0 0 80px;
    color: #aaa;
    font-size: 14px;
    text-align: left;
}

.profile-form-field {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.profile-form-field > .profile-form-input {
    flex: 0 0 auto;
    width: 100%;
}

.profile-form-row-name {
    align-items: flex-start;
}

.profile-form-row-name > label {
    padding-top: 11px;
}

.profile-form-input--nickname-required {
    border-color: #f8b700 !important;
    box-shadow: 0 0 0 2px rgba(248, 183, 0, 0.35);
}

.profile-form-hint--nickname-required {
    margin: 6px 0 0;
    color: #f8b700;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

.message-modal-overlay--nickname-required {
    cursor: default;
}

.profile-form-row-name--required > label {
    color: #f8b700;
}

.profile-form-row-about {
    align-items: flex-start;
}

.profile-form-row-about label {
    padding-top: 11px;
}

.profile-form-about-textarea {
    min-height: 168px;
    resize: vertical;
    line-height: 1.45;
}

.profile-form-input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #1a1c23;
    border: 1px solid #3a4653;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.profile-form-input:focus {
    border-color: #71aaeb;
}

.profile-form-input::placeholder {
    color: #555;
}

.profile-form-row-city .profile-city-input-wrapper,
.profile-form-row-country .profile-city-input-wrapper,
.profile-form-row-gender .profile-city-input-wrapper,
.profile-form-row .profile-city-input-wrapper {
    flex: 1;
    position: relative;
    min-height: 42px;
}

.profile-form-row-country .profile-form-input,
.profile-form-row-city .profile-form-input,
.profile-form-row-gender .profile-form-input {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
}

.profile-form-row-gender select.profile-form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.profile-form-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ff6b6b;
}

.community-edit-modal-footer {
    gap: 10px;
}

.forum-topic-like-toggle,
.btn.forum-topic-like-toggle,
.post-comments-toggle,
.btn.post-comments-toggle,
.post-repost-toggle,
.btn.post-repost-toggle,
.comment-like-toggle,
.btn.comment-like-toggle,
.comment-reply-btn,
.comment-edit-btn,
.comment-delete-btn,
.comment-delete-branch-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    transition: background 0.2s, opacity 0.2s !important;
    -webkit-tap-highlight-color: transparent;
}

.forum-topic-like-toggle,
.btn.forum-topic-like-toggle,
.post-comments-toggle,
.btn.post-comments-toggle,
.post-repost-toggle,
.btn.post-repost-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 4.8px !important;
    padding: 4.8px 9.6px !important;
    border-radius: 4px !important;
}

.forum-topic-like-toggle .forum-topic-like-heart {
    width: 21.6px !important;
    height: 21.6px !important;
}

.forum-topic-like-count,
.post-comments-count,
.post-repost-count {
    color: #fff !important;
    font-size: 16.8px !important;
    font-weight: 500 !important;
}

.post-comments-toggle svg {
    width: 21.6px !important;
    height: 21.6px !important;
    display: block !important;
    flex-shrink: 0 !important;
    color: #9aa0a6 !important;
}

.post-repost-toggle svg,
.post-repost-icon {
    width: 19.2px !important;
    height: 19.2px !important;
    display: block !important;
    flex-shrink: 0 !important;
    color: #9aa0a6 !important;
}

/* Контурная иконка репоста визуально «тяжелее» — чуть тоньше штрих */
.post-repost-toggle svg {
    stroke-width: 1.5;
}

.comment-like-toggle,
.btn.comment-like-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

.comment-like-toggle .forum-topic-like-heart,
.comment-like-toggle img {
    width: 16px !important;
    height: 16px !important;
}

.forum-topic-like-heart {
    display: block !important;
    flex-shrink: 0;
    color: #ff3347 !important;
    fill: currentColor !important;
    stroke: none !important;
    filter: none !important;
}

.like-toggle--empty .forum-topic-like-heart {
    color: #9aa0a6 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.comment-like-toggle .forum-topic-like-count {
    font-size: 12px !important;
}

.comment-card .comment-likes-wrapper.comment-likes-zero .comment-like-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s;
}

.comment-card:hover .comment-likes-wrapper.comment-likes-zero .comment-like-toggle,
.comment-card:focus-within .comment-likes-wrapper.comment-likes-zero .comment-like-toggle {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.comment-card.reply-card .comment-like-toggle,
.reply-likes-wrapper .comment-like-toggle {
    padding: 2px 4px !important;
}

.comment-card.reply-card .comment-like-toggle .forum-topic-like-heart,
.comment-card.reply-card .comment-like-toggle img,
.reply-likes-wrapper .comment-like-toggle .forum-topic-like-heart,
.reply-likes-wrapper .comment-like-toggle img {
    width: 14px !important;
    height: 14px !important;
}

.comment-card.reply-card .comment-like-toggle .forum-topic-like-count,
.reply-likes-wrapper .comment-like-toggle .forum-topic-like-count {
    font-size: 11px !important;
}

.comment-reply-btn {
    padding: 2px 0 !important;
    border-radius: 4px !important;
    line-height: normal !important;
}

.comment-card:not(.reply-card) .comment-reply-btn {
    font-size: 12px !important;
}

.comment-card.reply-card .comment-reply-btn {
    font-size: 11px !important;
}

.comment-edit-btn,
.comment-delete-btn,
.comment-delete-branch-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.forum-topic-like-toggle:hover,
.post-comments-toggle:hover,
.post-repost-toggle:hover,
.btn.post-repost-toggle:hover,
.comment-like-toggle:hover,
.comment-reply-btn:hover,
.comment-reply-btn:focus,
.comment-reply-btn:focus-visible,
.comment-edit-btn:hover,
.comment-edit-btn:focus,
.comment-edit-btn:focus-visible,
.comment-delete-btn:hover,
.comment-delete-btn:focus,
.comment-delete-btn:focus-visible,
.comment-delete-branch-btn:hover,
.comment-delete-branch-btn:focus,
.comment-delete-branch-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.forum-topic-like-toggle:not(:hover),
.btn.forum-topic-like-toggle:not(:hover),
.post-comments-toggle:not(:hover),
.btn.post-comments-toggle:not(:hover),
.post-repost-toggle:not(:hover),
.btn.post-repost-toggle:not(:hover),
.comment-like-toggle:not(:hover),
.btn.comment-like-toggle:not(:hover) {
    background: transparent !important;
}

.wall-post-content-wrap {
    position: relative;
    margin-top: 12px;
    margin-bottom: 12px;
    --wall-post-text-fade-bg: #22242c;
}

.wall-post-content-wrap .wall-post-content {
    color: #e5e7eb;
    line-height: 1.5;
    word-wrap: break-word;
}

.post-content .twemoji-inline,
.wall-post-content .twemoji-inline,
.post-repost-text .twemoji-inline,
.community-wall-feed .twemoji-inline,
.wall-comment-text .twemoji-inline {
    height: 1.2em;
    width: 1.2em;
    margin: 0 0.05em;
    vertical-align: -0.15em;
    display: inline-block;
    object-fit: contain;
    pointer-events: none;
    user-select: text;
}

.wall-post-content-measure {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    left: 0;
    right: 0;
    top: 0;
    z-index: -1;
    height: auto;
    max-height: none;
    overflow: visible;
}

.wall-post-content-body {
    position: relative;
}

.wall-post-content-wrap--collapsed .wall-post-content-body .wall-post-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
}

/* Затухание текста слева от кнопки; справа от кнопки — сплошной фон (без обрывков слов) */
.wall-post-content-wrap--collapsed .wall-post-content-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5em;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--wall-post-text-fade-bg) 46%,
        var(--wall-post-text-fade-bg) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.wall-post-content-more {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
    border: none;
    padding: 0 0.15em;
    margin: 0;
    height: 1.5em;
    background: var(--wall-post-text-fade-bg);
    box-shadow: -0.85em 0 0.55em var(--wall-post-text-fade-bg);
    color: #828282;
    font-size: inherit;
    line-height: 1.5;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.wall-post-content-more:hover,
.wall-post-content-more:focus-visible {
    color: #a0a0a0;
    transform: translateX(-50%);
}

/* common.css: .nk-app-root button:hover { transform: none } — ломает центрирование */
.nk-app-root .wall-post-content-more,
.nk-app-root .wall-post-content-more:hover,
.nk-app-root .wall-post-content-more:focus-visible {
    transform: translateX(-50%);
}

.post-content .post-link,
.wall-post-content .post-link,
.post-repost-text .post-link,
.community-wall-feed .post-link {
    color: #71aaeb;
    text-decoration: none;
    cursor: pointer;
    word-break: break-word;
    position: relative;
    z-index: 2;
}

.post-content .post-link:hover,
.wall-post-content .post-link:hover,
.post-repost-text .post-link:hover,
.community-wall-feed .post-link:hover {
    color: #8bb8f0;
    text-decoration: underline;
}

.wall-post-content-wrap.post-repost-text-wrap {
    margin-top: 0;
    margin-bottom: 0;
}

.comment-card {
    position: relative;
}

.wall-post-comments {
    padding: 16px 0 0;
    margin-top: 12px;
}

.wall-post-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.wall-comment-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wall-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.wall-comment-body {
    flex: 1;
    min-width: 0;
}

.wall-comment-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1px;
    padding-right: 48px;
}

.wall-comment-author {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wall-comment-edit-hint {
    font-size: 11px;
    color: #888;
}

.wall-comment-text {
    color: #fff;
    line-height: 1.35;
    font-size: 14px;
    font-weight: 400;
    white-space: pre-wrap;
    margin: 0 0 4px;
    word-wrap: break-word;
}

.wall-comment-text--deleted {
    color: #9aa0a6;
    font-size: 13px;
    font-style: italic;
}

.wall-comment-date {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #888;
    margin: 0;
}

.wall-comment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 2px;
}

.wall-comment-show-more {
    background: transparent;
    border: none;
    color: #6b9fff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    font-weight: 500;
    margin-top: 4px;
}

.wall-posts-show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 8px;
}

.wall-posts-show-more {
    min-width: 160px;
}

.wall-post-comments__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.wall-comment-edit-btn,
.wall-comment-delete-btn {
    color: #fff;
}

.comment-card .comment-edit-btn,
.comment-card .comment-delete-btn,
.comment-card .comment-delete-branch-btn,
.comment-card.reply-card .reply-action-btn {
    opacity: 0 !important;
    pointer-events: none !important;
}

.comment-card:hover:not(:has(.reply-item-wrapper:hover)) > .comment-edit-btn,
.comment-card:hover:not(:has(.reply-item-wrapper:hover)) > .comment-delete-btn,
.comment-card:hover:not(:has(.reply-item-wrapper:hover)) > .comment-delete-branch-btn,
.comment-card:focus-within > .comment-edit-btn,
.comment-card:focus-within > .comment-delete-btn,
.comment-card:focus-within > .comment-delete-branch-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.comment-card .comment-reply-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.reply-item-wrapper {
    position: relative;
}

.comment-card.reply-card {
    position: relative;
}

.reply-item-wrapper .comment-card.reply-card .reply-action-btn,
.reply-item-wrapper .comment-card.reply-card .reply-likes-wrapper.comment-likes-zero .comment-like-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s;
}

.comment-card:hover .reply-item-wrapper:not(:hover) .comment-card.reply-card .reply-action-btn,
.comment-card:hover .reply-item-wrapper:not(:hover) .comment-card.reply-card .reply-likes-wrapper.comment-likes-zero .comment-like-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
}

.reply-item-wrapper:hover .comment-card.reply-card .reply-action-btn,
.reply-item-wrapper:hover .comment-card.reply-card .reply-likes-wrapper.comment-likes-zero .comment-like-toggle {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.comment-card.reply-card:hover .reply-action-btn,
.comment-card.reply-card:focus-within .reply-action-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.reply-item-wrapper .comment-card.reply-card .reply-likes-wrapper:not(.comment-likes-zero) .comment-like-toggle {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.comment-card .comment-edit-btn:hover,
.comment-card .comment-delete-btn:hover,
.comment-card .reply-action-btn:hover,
.comment-card .comment-reply-btn:hover,
.comment-card .comment-like-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.post-menu-dropdown.profile-cover-dropdown {
    min-width: 240px;
    width: max-content;
    z-index: 1000;
}

.post-menu-dropdown.post-menu-dropdown--teleport {
    position: fixed;
    top: auto;
    left: auto;
    z-index: 100060 !important;
}

.post-menu-dropdown.profile-cover-dropdown .profile-cover-dropdown-item span {
    white-space: nowrap;
}

/* Модалка «Создать запись»: фиксированная высота полей, без ручки ресайза */
.create-post-modal-panel .create-post-modal-textarea,
.create-post-modal-panel .community-vk-video-input {
    resize: none !important;
    max-height: none !important;
    overflow-y: auto;
}

.create-post-modal-panel .create-post-modal-textarea {
    min-height: 90px;
}

.create-post-modal-panel .create-post-modal-textarea--dragover {
    background: rgba(81, 129, 184, 0.08) !important;
    box-shadow: inset 0 0 0 2px rgba(81, 129, 184, 0.55);
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.create-post-modal-panel .create-post-modal-textarea {
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.create-post-input-hint {
    margin: 8px 0 0;
    color: #9aa0a6;
    font-size: 12px;
    line-height: 1.35;
}

.create-post-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.create-post-image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.create-post-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #3a4653;
    display: block;
}

.create-post-image-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.community-wall-actions-row {
    justify-content: flex-end;
}

.community-wall-create-actions {
    margin-left: auto;
}

.community-profile-actions {
    align-items: flex-start;
}

.community-profile-info,
.community-profile-info > .user-info {
    width: 100%;
    min-width: 0;
    text-align: left;
}

.community-profile-name {
    justify-content: flex-start !important;
    text-align: left;
}

.community-profile-name-text {
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.community-profile-description {
    text-align: left;
    overflow-wrap: anywhere;
}

.community-profile-buttons {
    align-items: stretch;
    min-width: 220px;
}

.community-profile-buttons .btn-tab-style,
.community-profile-buttons .community-profile-action-btn {
    width: 100%;
}

@media (max-width: 768px) {
    .account-tabs-with-content {
        padding: 10px 16px 2px !important;
    }

    .account-tabs-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .account-tabs-header-row .account-tabs-row,
    .account-tabs-header-row .account-tabs-row-vk {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .account-tabs-header-row .create-post-actions-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: min(100%, 420px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        min-width: 0 !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }

    .account-tabs-header-row .create-post-actions-wrap > .create-post-btn-tooltip-wrap {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
    }

    .account-tabs-header-row .create-post-actions-wrap .create-post-btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 48px !important;
        padding: 10px 14px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .account-tabs-header-row .create-post-actions-wrap .create-post-text {
        display: inline !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    /* Новая строка только с «Опубликовать»: по центру, высота как у вкладок; граффити — через меню */
    .account-tabs-header-row .create-post-actions-wrap--publish-hub > .publish-actions-menu-anchor {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .account-tabs-header-row .create-post-actions-wrap--publish-hub > .publish-actions-menu-anchor .create-post-btn {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        /* 1в1 как обычная .btn-tab-style (в т.ч. кнопка «Отправить подарок») */
        min-height: auto !important;
        padding: 8px 12px !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: normal !important;
        box-sizing: border-box !important;
    }

    .account-tabs-header-row .create-post-actions-wrap--publish-hub > .publish-actions-menu-anchor .create-post-text {
        font-size: 15px !important;
        font-weight: 400 !important;
    }

    .account-tabs-header-row .create-post-actions-wrap--send-gift .account-send-gift-btn,
    .account-tabs-header-row .create-post-actions-wrap--send-gift .create-post-btn {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 8px 12px !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: normal !important;
        box-sizing: border-box !important;
    }

    .account-tabs-header-row .create-post-actions-wrap--send-gift .create-post-text {
        font-size: 15px !important;
        font-weight: 400 !important;
    }

    .account-tabs-header-row .account-tabs-row .account-tab-vk {
        gap: 5px !important;
        padding: 9px 12px !important;
        min-height: 40px !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .account-tabs-header-row .account-tabs-row-vk.account-tabs-row--no-music {
        flex-wrap: nowrap !important;
    }

    .account-tabs-header-row .account-tabs-row--no-music .account-tab-vk {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .account-tabs-header-row .account-tabs-row-vk:not(.account-tabs-row--no-music) .account-tab-vk {
        flex: 0 0 auto !important;
    }

    /* Ряд вкладок: если помещаются — по центру (одинаковые отступы слева и справа); иначе горизонтальный скролл */
    .account-tabs-header-row > .account-tabs-row.account-tabs-row-vk {
        flex-wrap: nowrap !important;
        align-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        box-sizing: border-box !important;
        gap: 6px !important;
        justify-content: center !important;
        padding-bottom: 3px;
        padding-inline-start: calc(4px + env(safe-area-inset-left, 0px)) !important;
        padding-inline-end: calc(4px + env(safe-area-inset-right, 0px)) !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    @supports (justify-content: safe center) {
        .account-tabs-header-row > .account-tabs-row.account-tabs-row-vk {
            justify-content: safe center !important;
        }
    }

    .account-tabs-header-row > .account-tabs-row.account-tabs-row-vk::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .account-tabs-header-row > .account-tabs-row.account-tabs-row-vk .account-tab-vk {
        flex: 0 0 auto !important;
        gap: 4px !important;
        padding: 8px 10px !important;
        max-width: none !important;
    }

    .account-tabs-header-row .account-tab-vk .account-tab-label {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: visible !important;
        text-overflow: clip !important;
        min-width: 0;
    }

    .account-tabs-header-row .account-tab-vk svg {
        width: 17px !important;
        height: 17px !important;
        flex-shrink: 0 !important;
    }

    .message-modal-overlay {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 56px) !important;
        padding: 0 !important;
        overflow: hidden !important;
        align-items: stretch !important;
        justify-content: center !important;
        display: flex !important;
    }

    .message-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        flex: 1 1 0 !important;
        min-height: 0 !important;
        /* При body position:fixed под оверлеем прокрутка только внутри панели (форма «Редактировать профиль» и др.) */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .message-modal-header:has(.go-to-dialog-link) {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .message-modal-header:has(.go-to-dialog-link) .go-to-dialog-link {
        margin-top: 4px !important;
    }

    .transfer-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        flex: 1 1 0 !important;
        min-height: 0 !important;
    }

    .message-modal-close-btn,
    .modal-close-btn-outside,
    .profile-cover-modal-close {
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        margin-left: 0 !important;
    }

    .community-profile-actions {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .community-profile-info,
    .community-profile-info > .user-info,
    .community-profile-name,
    .community-profile-name-text,
    .community-profile-description {
        justify-content: center !important;
        text-align: center;
    }

    .community-profile-buttons {
        width: auto !important;
        max-width: min(340px, calc(100vw - 48px)) !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }

    .community-profile-buttons .btn-tab-style,
    .community-profile-buttons .community-profile-action-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .community-profile-buttons .community-subscribe-btn {
        width: auto !important;
        max-width: 100% !important;
        align-self: center !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .profile-edit-modal-inner,
    .message-modal.photo-modal-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .profile-edit-modal-inner .profile-form-row {
        width: 100%;
    }

    .profile-edit-modal-inner .profile-form-input,
    .profile-edit-modal-inner .profile-form-field,
    .profile-edit-modal-inner .profile-city-input-wrapper {
        min-width: 0;
        flex: 1 1 0;
    }

    .profile-edit-modal-inner .profile-city-input-wrapper {
        width: 100%;
    }

    .profile-edit-modal-inner .profile-form-row label {
        flex: 0 0 72px;
    }

    /* Mobile shell: «Редактирование сообщества» — сразу под title bar, без top:56px и без центрирования */
    html[data-desktop-app-shell="1"] .community-edit-modal-overlay.message-modal-overlay {
        top: var(--tw-shell-titlebar-height, 44px) !important;
        height: calc(100dvh - var(--tw-shell-titlebar-height, 44px)) !important;
        max-height: calc(100dvh - var(--tw-shell-titlebar-height, 44px)) !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important;
    }

    html[data-desktop-app-shell="1"] .community-edit-modal-panel.message-modal {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        border-radius: 0 !important;
        flex: 1 1 auto !important;
    }
}


/* --- Custom tooltips: Publish (profile + community) --- */
/* Кастомные тултипы кнопок «Опубликовать» (вместо нативного title) */
.create-post-btn-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    z-index: 2;
}
/* «Облачко»: как блок под аватаром (.avatar-hover-menu): фон и рамка; носик вниз к кнопке «Опубликовать» */
.create-post-btn-tooltip-wrap .create-post-btn-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 0;
    min-width: min(280px, 92vw);
    max-width: min(680px, 96vw);
    background: rgba(34, 36, 44, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    font-size: 14px;
}
.create-post-btn-tooltip-wrap .create-post-btn-tooltip__inner {
    display: block;
    padding: 12px 16px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    text-align: left;
    border-radius: 8px;
}
/* Запечатанная кнопка: до 3 строк, по центру */
.create-post-btn-tooltip-wrap .create-post-btn-tooltip__inner--sealed {
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    max-height: calc(1.35em * 6 + 32px);
}
.create-post-btn-tooltip-wrap .create-post-btn-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(148, 163, 184, 0.22);
    z-index: 0;
}
.create-post-btn-tooltip-wrap .create-post-btn-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(34, 36, 44, 0.98);
    z-index: 1;
}
.create-post-btn-tooltip-wrap:hover .create-post-btn-tooltip,
.create-post-btn-tooltip-wrap:focus-within .create-post-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .create-post-btn-tooltip-wrap .create-post-btn-tooltip {
        min-width: min(300px, 96vw);
        max-width: min(720px, 96vw);
    }

    /* Тач: без hover/focus показываем тултип, пока открыто dropdown «Опубликовать» */
    .create-post-btn-tooltip-wrap--hub-open .create-post-btn-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Профиль / стена сообщества: «Что у вас нового», «Написать на стене», «Новая запись» — всегда серая .btn-tab-style */
.create-post-actions-wrap--publish-hub:not(.create-post-actions-wrap--send-gift) .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn,
.create-post-actions-wrap--publish-hub:not(.create-post-actions-wrap--send-gift) .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed),
.community-wall-create-actions .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn,
.community-wall-create-actions .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed),
.community-profile-buttons .btn-name.btn-tab-style.create-post-btn,
.community-profile-buttons .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1;
    transition: background-color 0.2s, color 0.2s !important;
}

.create-post-actions-wrap--publish-hub:not(.create-post-actions-wrap--send-gift) .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:hover:not(:disabled),
.create-post-actions-wrap--publish-hub:not(.create-post-actions-wrap--send-gift) .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):hover:not(:disabled),
.community-wall-create-actions .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:hover:not(:disabled),
.community-wall-create-actions .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):hover:not(:disabled),
.community-profile-buttons .btn-name.btn-tab-style.create-post-btn:hover:not(:disabled),
.community-profile-buttons .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1;
}

.create-post-actions-wrap--publish-hub:not(.create-post-actions-wrap--send-gift) .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:active:not(:disabled),
.create-post-actions-wrap--publish-hub:not(.create-post-actions-wrap--send-gift) .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):active:not(:disabled),
.community-wall-create-actions .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:active:not(:disabled),
.community-wall-create-actions .publish-actions-menu-anchor .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):active:not(:disabled),
.community-profile-buttons .btn-name.btn-tab-style.create-post-btn:active:not(:disabled),
.community-profile-buttons .btn-name.btn-tab-style.create-post-btn:not(.create-post-btn--sealed):active:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: #fff !important;
    opacity: 1;
}



/* --- Graffiti modal (PostGraffitiModal, profile) --- */
/* ——— Мобильное граффити (только ≤768, отдельный Teleport) ——— */
/* На весь экран; z-index выше нави/оверлеев */
.graffiti-mobile-screen {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    background: #000;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}
.graffiti-mobile-inner {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
}
.graffiti-mobile-canvas-area {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}
/* Размеры задаёт updateGraffitiMobileCanvasLayout() — пропорция 680:1200, без object-fit */
.graffiti-canvas--mobile {
    display: block;
    flex-shrink: 0;
    background: #ffffff;
    touch-action: none;
}
.graffiti-mobile-chrome {
    flex: 0 0 auto;
    width: 100%;
    background: #ffffff;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.graffiti-mobile-palette-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    min-height: calc(2.2rem * 1.2);
    border-bottom: 1px solid #e4e4e4;
    box-sizing: border-box;
}
.graffiti-mobile-swatches {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.graffiti-mobile-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.graffiti-mobile-swatch--light {
    box-shadow: inset 0 0 0 1px #c5c5c5;
}
.graffiti-mobile-swatch--active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1e88e5, 0 0 0 5px #1e88e5;
}
.graffiti-mobile-swatch--light.graffiti-mobile-swatch--active {
    box-shadow: inset 0 0 0 1px #9ca3af, 0 0 0 2px #fff, 0 0 0 4px #1e88e5;
}
.graffiti-mobile-menu-btn {
    flex-shrink: 0;
    margin-left: 4px;
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.graffiti-mobile-sheet {
    padding: 4px 16px 12px;
    border-bottom: 1px solid #e4e4e4;
    background: #fff;
    box-sizing: border-box;
}
.graffiti-mobile-sheet-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.graffiti-mobile-sheet-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.graffiti-mobile-range {
    width: 100%;
    accent-color: #1e88e5;
}
.graffiti-mobile-sheet-link {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: #1e88e5;
    text-decoration: underline;
    font-size: 13px;
    font-family: inherit;
    padding: 6px 0;
    cursor: pointer;
}
.graffiti-mobile-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: calc(3.2rem * 1.2);
    padding: 12px 14px;
    box-sizing: border-box;
    background: #fff;
}
.graffiti-mobile-action-side {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}
.graffiti-mobile-action-side:first-child {
    justify-content: flex-start;
}
.graffiti-mobile-action-side--end {
    justify-content: flex-end;
}
.graffiti-mobile-action-mid {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.graffiti-mobile-action-ic {
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.graffiti-mobile-action-confirm {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1e88e5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.35);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Модалка граффити: тёмный chrome как у остальных модалок; раскладка ползунков и 11 рисок как на старом VK */
.graffiti-modal-card.message-modal {
    max-width: min(800px, calc(100vw - 32px)) !important;
    width: 100%;
    position: relative;
}
.graffiti-modal-body {
    padding: 0;
    overflow: visible;
    position: relative;
    z-index: 0;
}
.graffiti-modal-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #9aa0a6;
    line-height: 1.4;
}
.graffiti-modal-top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 10px;
}
.graffiti-modal-link {
    background: none;
    border: 0;
    padding: 0;
    color: #71aaeb;
    text-decoration: underline;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}
.graffiti-modal-link:hover {
    text-decoration: none;
    color: #5a8fd4;
}
.graffiti-modal-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0;
}
/* Панель 1в1 по референсу: точка, цвет, толщина, интенсивность — строго в один ряд */
.graffiti-toolbar-stripe-pad {
    flex: 1 1 0;
    min-width: 0;
    height: 1px;
    align-self: stretch;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.graffiti-color-lane {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    /* Было: gap 40px после кисти; с pad не используем column-gap, чтобы лишние 40px не сдвигали кластер */
    margin-left: 40px;
    /* 113.6px = старый margin+gap+gap: цвет визуально по центру между кистью и толщиной */
    padding: 0 calc(113.6px / 2);
    min-width: 0;
}
.graffiti-slider-block--thickness {
    margin-left: 40px;
}
.graffiti-slider-block--intensity {
    margin-left: 40px;
}
.graffiti-brush-preview-wrap {
    position: relative;
    z-index: 50;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    /* +20% к прежним 32px: запас вверх/вниз, содержимое ряда по центру, точка без клипа */
    height: calc(32px * 1.2);
    min-height: calc(32px * 1.2);
    flex: 0 0 32px;
    box-sizing: border-box;
    overflow: visible;
    flex-shrink: 0;
    pointer-events: none;
    align-self: center;
    isolation: isolate;
}
.graffiti-brush-preview {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    display: block;
    box-sizing: border-box;
}
.graffiti-toolbar-stripe {
    position: relative;
    z-index: 1;
    overflow: visible;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    /* Пад слева прижимает кластер к правому краю, как с justify-content: flex-end */
    justify-content: flex-start;
    /* Между pad и первой кистью gap нет (как раньше слева от точки — только «воздух» пада) */
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
    border-top: 1px solid #3a4653;
    padding: 10px 0 5px;
    margin-top: 12px;
}
.graffiti-tool-cell {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px 6px;
    flex-shrink: 0;
}
.graffiti-tool-label {
    white-space: nowrap;
    color: #c4c8d0;
    font-size: 12px;
}
.graffiti-tool-label.graffiti-tool-label--stripe {
    color: #c4c8d0;
    line-height: 1.2;
    font-weight: 400;
}
.graffiti-tool-color-label {
    display: inline-block;
    margin: 0;
    line-height: 0;
}
/* Выбор цвета: ровна одна линия обводки, без «толстой» рамки */
.graffiti-color-input--stripe {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 16px;
    min-width: 22px;
    min-height: 16px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #7a7a7a;
    border-radius: 0;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
    vertical-align: middle;
}
.graffiti-color-input--stripe::-webkit-color-swatch-wrapper {
    padding: 0;
}
.graffiti-color-input--stripe::-webkit-color-swatch {
    border: none;
    border-radius: 0;
}
.graffiti-color-input--stripe::-moz-color-swatch {
    border: none;
    border-radius: 0;
}
/* старые стили color-input в модалке — только если не «полоска» */
.graffiti-modal-card .graffiti-color-input:not(.graffiti-color-input--stripe) {
    width: 32px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 4px;
    cursor: pointer;
    background: #1a1c23;
}
.graffiti-slider-block {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px 6px;
    min-width: 0;
    max-width: none;
}
.graffiti-range-vk {
    position: relative;
    flex: 0 0 115.2px;
    width: 115.2px;
    min-width: 115.2px;
    max-width: 115.2px;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0;
}
.graffiti-range-vk .graffiti-range {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    accent-color: var(--graffiti-accent, #4a76a8);
}
/* Трек — тонкая линия (на тёмном фоне модалки — чуть темнее) */
.graffiti-range-vk .graffiti-range::-webkit-slider-runnable-track {
    height: 2px;
    background: #bcbcbc;
    border-radius: 0;
    border: 0;
}
.graffiti-modal-card .graffiti-range-vk .graffiti-range::-webkit-slider-runnable-track {
    background: #5a6170;
}
.graffiti-range-vk .graffiti-range::-moz-range-track {
    height: 2px;
    background: #bcbcbc;
    border-radius: 0;
    border: 0;
}
.graffiti-modal-card .graffiti-range-vk .graffiti-range::-moz-range-track {
    background: #5a6170;
}
.graffiti-range-vk .graffiti-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 7px;
    height: 11px;
    margin-top: -4px;
    border-radius: 1px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--graffiti-accent, #4a76a8);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.graffiti-range-vk .graffiti-range::-moz-range-thumb {
    width: 7px;
    height: 11px;
    border-radius: 1px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--graffiti-accent, #4a76a8);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
/* IE / Edge (legacy) */
.graffiti-range-vk .graffiti-range::-ms-fill-lower,
.graffiti-range-vk .graffiti-range::-ms-fill-upper {
    background: #bcbcbc;
    border-radius: 0;
}
.graffiti-modal-card .graffiti-range-vk .graffiti-range::-ms-fill-lower,
.graffiti-modal-card .graffiti-range-vk .graffiti-range::-ms-fill-upper {
    background: #5a6170;
}
.graffiti-range-vk .graffiti-range::-ms-thumb {
    width: 7px;
    height: 11px;
    border-radius: 1px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--graffiti-accent, #4a76a8);
}
/* Панель без светлой подложки: дорожка как у тёмных модалок, серый бегунок */
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range {
    accent-color: #909090;
}
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range::-webkit-slider-runnable-track {
    background: #5a6170;
}
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range::-moz-range-track {
    background: #5a6170;
}
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range::-ms-fill-lower,
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range::-ms-fill-upper {
    background: #5a6170;
}
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range::-webkit-slider-thumb {
    width: 8px;
    height: 10px;
    margin-top: -4px;
    border-radius: 1px;
    border: 1px solid #5a5a5a;
    background: #b4b4b4;
    box-shadow: none;
}
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range::-moz-range-thumb {
    width: 8px;
    height: 10px;
    border-radius: 1px;
    border: 1px solid #5a5a5a;
    background: #b4b4b4;
    box-shadow: none;
}
.graffiti-modal-card .graffiti-toolbar-stripe .graffiti-range-vk .graffiti-range::-ms-thumb {
    width: 8px;
    height: 10px;
    border-radius: 1px;
    border: 1px solid #5a5a5a;
    background: #b4b4b4;
    box-shadow: none;
}
/* Толщина: фикс. ширина трека; интенсивность — только через .graffiti-slider-block--intensity выше */
.graffiti-toolbar-stripe .graffiti-tool-cell {
    flex-shrink: 0;
}
/* Белый «лист» по умолчанию */
.graffiti-modal-card .graffiti-canvas-shell {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}
.graffiti-modal-card .graffiti-canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    background: #ffffff;
}
.graffiti-modal-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3a4653;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}
.graffiti-modal-btn--secondary {
    min-height: 38px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #3a4150;
    color: #e5e7eb;
    transition: background 0.2s, border-color 0.2s;
}
.graffiti-modal-submit-btn {
    min-height: 38px;
    padding: 8px 18px;
}
.graffiti-modal-btn--secondary:hover {
    background: #4a5568;
    border-color: rgba(148, 163, 184, 0.5);
}

/* Светлая тема: макет обложки = как в тёмной (высота + наложение аватара) */
html[data-dashboard-theme="light"] body:has(.account-content-top) .profile-header-wrapper .profile-cover {
    height: 200px !important;
    min-height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 12px 12px 0 0 !important;
}

html[data-dashboard-theme="light"] body:has(.account-content-top) .profile-header-wrapper .profile-header {
    margin-top: -60px !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 0 !important;
}

html[data-dashboard-theme="light"] body:has(.account-content-top) .profile-header-wrapper .avatar-container {
    position: relative !important;
    z-index: 3 !important;
}

@media (max-width: 768px) {
    html[data-dashboard-theme="light"] body:has(.account-content-top) .profile-header-wrapper .profile-cover {
        height: 220px !important;
        min-height: 220px !important;
        border-radius: 0 !important;
    }

    html[data-dashboard-theme="light"] body:has(.account-content-top) .profile-header-wrapper .profile-header {
        margin-top: -50px !important;
    }

    html[data-dashboard-theme="light"] body:has(.account-content-top) .profile-header-wrapper .avatar-container {
        margin: -48px 0 12px 0 !important;
        order: -1;
    }
}

/* Профиль — «Рейтинг продавца» без карточки (фон/обводка) */
.seller-reviews-section .reviews-funpay-wrap,
.profile-reviews-section .reviews-funpay-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.seller-reviews-section {
    margin-bottom: 24px;
}

/* Профиль: не растягивать обёртку ЛК по высоте и не оставлять серый хвост после отзывов.
   Ширину колонки не трогаем — .nk-content-body обязан оставаться flex:1 в ряду с сайдбаром. */
body.has-aside:has(.account-content-top) .nk-content-body {
    min-height: 0 !important;
    background: transparent !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.has-aside:has(.account-content-top) .nk-content-wrap.dashboard-content-wrapper,
body.has-aside:has(.account-content-top) .dashboard-content-wrapper {
    min-height: 0 !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}

body:has(.account-content-top) .account-content-top {
    padding-bottom: 0 !important;
}

body.has-aside:has(.account-content-top) .nk-content,
body.has-aside:has(.account-content-top) .nk-content-inner,
body.has-aside:has(.account-content-top) .nk-content-wrap,
body.has-aside:has(.account-content-top) .dashboard-main-container,
body.has-aside:has(.account-content-top) .nk-main,
body.has-aside:has(.account-content-top) .nk-wrap {
    background: transparent !important;
}

body.has-aside:has(.account-content-top),
html[data-dashboard-theme="dark"] body.has-aside:has(.account-content-top),
body.dark-mode.has-aside:has(.account-content-top) {
    background-color: #141414 !important;
}

