/* ================================
   RESET И БАЗОВЫЕ СТИЛИ
   ================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-container {
    max-width: 600px;
    padding: 20px;
}

/* ================================
   ТИПОГРАФИКА
   ================================ */
h1 {
    text-align: center;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h2 {
    margin: 10px 0;
    font-size: 1.5rem;
}

/* ================================
   HEADER
   ================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.auth-section {
    display: flex;
    align-items: center;
}

/* ================================
   GRID-РАЗМЕТКА
   ================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin: 20px auto;
    padding: 0 20px;
    max-width: 2000px;
}

/* ================================
   КАРТОЧКИ ХУДОЖНИКОВ
   ================================ */
.artist-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 100%;
    margin: 0 auto;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.artist-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    flex-grow: 1;
}

.artist-name {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ================================
   СЛАЙДЕР
   ================================ */
    .slider {
      position: relative;
      width: 100%;
      height: 320px;
      margin: 20px auto;
      overflow: hidden;
      border-radius: 20px;
    }
    .slides {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.6s ease-in-out;
    }
    .slide {
      min-width: 100%;
      height: 100%;
      position: relative;
      display: flex;
      align-items: center;
      padding: 40px;
      box-sizing: border-box;
      color: #fff;
    }
    .slide-content {
      max-width: 50%;
    }
    .slide h2 {
      font-size: 38px;
      margin: 0 0 15px;
      font-weight: 700;
    }
    .slide p {
      font-size: 16px;
      line-height: 1.4;
      margin-bottom: 20px;
    }
    .read-more {
      font-weight: bold;
      border-bottom: 2px solid #fff;
      display: inline-block;
      padding-bottom: 3px;
      cursor: pointer;
      color: #fff;
      text-decoration: none;
    }
    .slide img.character {
        position: absolute;
        right: 20px;
        bottom: -350px;
        height: 220%;
        object-fit: contain;
        pointer-events: none;
    }
    @media (max-width: 768px) {
    .slider {
      position: relative;
      width: 100%;
      height: 220px;
      margin: 20px auto;
      overflow: hidden;
      border-radius: 20px;
    }
    .slides {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.6s ease-in-out;
    }
    .slide {
      min-width: 100%;
      height: 100%;
      position: relative;
      display: flex;
      align-items: center;
      padding: 40px;
      box-sizing: border-box;
      color: #fff;
    }
    .slide-content {
      max-width: 50%;
    }
    .slide h2 {
        font-size: 18px;
        margin: 0 0 15px;
        font-weight: 700;
    }
    .slide p {
      font-size: 16px;
      line-height: 1.4;
      margin-bottom: 20px;
    }
    .read-more {
      font-weight: bold;
      border-bottom: 2px solid #fff;
      display: inline-block;
      padding-bottom: 3px;
      cursor: pointer;
      color: #fff;
      text-decoration: none;
    }
    .slide img.character {
      position: absolute;
      right: 20px;
      bottom: -20px;
      height: 120%;
      object-fit: contain;
      pointer-events: none;
    }
    }

/* ================================
   КАРТОЧКИ АРТОВ (artist.html)
   ================================ */
body.artist {
    margin: 0;
    padding: 0;
}

.artist .container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
}

.artist-grid {
    display: grid;
    gap: 0;
    margin: 20px auto;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.artist .art-card {
    color: inherit;
    display: flex;
    padding: 10px;
    position: relative;
}

.artist .art-card > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* ================================
   ФОРМЫ
   ================================ */
.form, .profile-form {
    max-width: 500px;
    margin: 0 auto 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1e1e1e;
    color: #fff;
    font-size: 1rem;
}

.form-group input::placeholder {
    color: #aaa;
}

/* ================================
   КНОПКИ
   ================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    text-align: center;
}

.like-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    padding: 0;
    flex-shrink: 0;
    font-size: 18px;
}

.like-btn.liked {
    background: #e91e63;
}

.like-btn span {
    display: block;
    transition: transform 0.2s ease;
}

.like-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.art-card:hover .like-btn {
    opacity: 1;
}

/* Кнопка удаления на миниатюрах (в сетке) */
.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.delete-btn img {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

.art-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #da190b;
}

.modal-btn img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Кнопка лайка в модалке */
.modal-like-btn {
    background: rgba(0, 0, 0, 0.6);
    font-size: 20px;
}

.modal-like-btn.liked {
    background: rgba(233, 30, 99, 0.8);
}

.modal-like-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: rgba(233, 30, 99, 0.9);
}

.modal-like-btn span {
    transition: transform 0.2s ease;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .delete-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        max-width: 28px;
        max-height: 28px;
        opacity: 100;
    }
    
    .delete-btn img {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px;
        min-height: 14px;
        max-width: 14px;
        max-height: 14px;
    }
    
    .like-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        max-width: 28px;
        max-height: 28px;
        opacity: 1;
        font-size: 16px;
    }
    
    .modal-btn img {
        width: 18px !important;
        height: 18px !important;
    }
   
    .artist .art-card > img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        border-radius: 8px;
    }
}

.btn:hover { background: #45a049; }
.btn-primary { background: #4CAF50; }
.btn-secondary { background: #2196F3; }
.btn-secondary:hover { background: #1976D2; }
.btn-danger { background: #f44336; }
.btn-danger:hover { background: #da190b; }
.btn-small { padding: 5px 10px; font-size: 0.875rem; }
.btn-pagination { min-width: 40px; padding: 8px 12px; }
.btn-pagination.active { background: #4CAF50; font-weight: bold; }

/* ================================
   ПАГИНАЦИЯ
   ================================ */
.pagination {
    text-align: center;
    margin: 40px 0;
    /* используется в artist.html */
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination li a {
    display: block;
    padding: 10px 15px;
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.pagination li a:hover {
    background: #4CAF50;
}

.pagination li.active a {
    background: #4CAF50;
    font-weight: bold;
}

/* ================================
   ИНФОРМАЦИЯ И СООБЩЕНИЯ
   ================================ */
.total, .profile-info {
    text-align: center;
    font-size: 0.875rem;
    color: #aaa;
    margin-top: 10px;
    /* используется в artist.html (total) и profile.html */
}

.success {
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    /* используется для уведомлений */
}

.no-results {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 40px;
    /* используется в artist.html при отсутствии артов */
}

/* ================================
   ССЫЛКА НАЗАД
   ================================ */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    /* используется в artist.html */
}

.back-link:hover {
    text-decoration: underline;
}

/* === Main Layout (Index & Artist) === */
.main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.chat-sidebar {
    width: 320px;
    background: #1e1e1e;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
    height: calc(100vh - 140px);
    max-height: 700px;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 10px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.message-info {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 2px;
}

.message-author {
    font-weight: 600;
    font-size: 14px;
    color: #4CAF50;
}

.message-time {
    font-size: 11px;
    color: #666;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #333;
}

.chat-input-area form {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
}

.chat-send-btn {
    background: #4CAF50;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #45a049;
}

.chat-login-msg {
    text-align: center;
    font-size: 13px;
    color: #888;
    padding: 5px;
}

/* === CHAT improvements === */
.chat-header .chat-title {
    font-weight: 700;
    color: #fff;
}

.chat-header .chat-status {
    font-size: 12px;
    color: #888;
}

.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #3d3d3d #1e1e1e;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}
.chat-messages::-webkit-scrollbar-track {
    background: #1e1e1e;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 8px;
}

.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.chat-input::placeholder {
    color: #777;
}

.message-text {
    color: #eaeaea;
    white-space: pre-wrap;
}

/* ================================
   ТАБЛИЦЫ (админка)
   ================================ */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.admin-table th {
    background: #333;
    font-weight: bold;
}

.admin-table tr:hover {
    background: #2a2a2a;
}

.avatar-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.inline-form {
    display: inline;
}

/* ================================
   ПРОФИЛЬ
   ================================ */
.profile-card {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    margin: 20px 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #4CAF50;
}

.profile-name {
    margin: 10px 0;
    font-size: 1.5rem;
}

.favorites-section {
    margin-top: 40px;
}

.favorites-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.favorites-section .art-card > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* ================================
   МОДАЛЬНОЕ ОКНО
   ================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
    opacity: 1;
}

.modal-inner {
    position: relative;
    display: flex;
    flex-direction: column; /* Стек: img сверху, message снизу */
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    gap: 15px;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

/* ================================
   МОДАЛЬНОЕ ОКНО - СООБЩЕНИЕ О КЭШЕ
   ================================ */
.cache-message {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    display: none;
    order: 3; /* Ниже img и loader */
}

@media (max-width: 768px) {
    .cache-message {
        font-size: 12px;
        max-width: 250px;
        padding: 8px;
    }
    .modal-inner {
        gap: 10px;
    }
}

/* ================================
   МОДАЛЬНОЕ ОКНО - КНОПКИ
   ================================ */

/* Контейнер для кнопок в правом верхнем углу */
.modal-controls {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}

/* Общие стили для кнопок */
.modal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Кнопка закрытия */
.close {
    position: relative;
    top: auto;
    right: auto;
    color: #fff;
    font-size: inherit;
    font-weight: normal;
}

.close:hover {
    background: rgba(244, 67, 54, 0.8);
    transform: scale(1.1);
}

/* Кнопка удаления */
.modal-delete-btn {
    position: relative;
    top: auto;
    right: auto;
    background: rgba(244, 67, 54, 0.8);
}

.modal-delete-btn:hover:not(:disabled) {
    background: rgba(218, 25, 11, 0.9);
    transform: scale(1.1);
}

.modal-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Лоадер (3 точки) === */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1050;
}

.loader div {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: loaderAnim 0.8s infinite ease-in-out;
}

.loader div:nth-child(1) { animation-delay: 0s; }
.loader div:nth-child(2) { animation-delay: 0.15s; }
.loader div:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderAnim {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ)
   ================================ */
@media (max-width: 768px) {
    .grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 0 10px !important;
        justify-content: space-between !important;
    }

    .artist-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 0 10px !important;
        justify-content: space-between !important;
    }

    .artist-card {
        flex: 1 1 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: auto !important;
        aspect-ratio: 3 / 4 !important;
        margin: 0 !important;
        padding: 8px !important;
    }

    .artist .art-card {
        flex: 1 1 calc(50% - 5px) !important;
        width: auto !important;
        margin: 0 !important;
        padding: 3px !important; 
    }

    /* Убираем старое правило и оставляем только специфичное */
    .artist .art-card > img {
        width: 100% !important;
        height: 170px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .artist-card > img {
        aspect-ratio: 1 / 1 !important;
        border-radius: 6px !important;
    }

    .artist-name {
        font-size: 0.9rem !important;
        margin-top: 8px !important;
    }

    .container {
        padding: 10px !important;
    }

    .pagination ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        max-width: 100%;
        padding: 0 10px;
        -webkit-overflow-scrolling: touch;
    }

    .pagination li a {
        flex-shrink: 0;
        white-space: nowrap;
        min-width: 40px;
    }

    /* === МОДАЛЬНОЕ ОКНО === */
    .modal-inner {
        max-width: 95% !important;
        max-height: 95% !important;
    }

    .modal-content {
        width: 100%;
        height: auto;
        max-height: 90vh;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .modal-controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .modal-btn {
        width: 36px;
        height: 36px;
    }
    
    .modal-btn img {
        width: 18px !important;
        height: 18px !important;
    }

    /* Убираем все старые кнопки навигации */
    .nav-btn,
    .prev-btn,
    .next-btn {
        display: none !important;
    }
}

/* ===== Mobile Chat Modal ===== */
.chat-fab,
.chat-modal {
    display: none;
}

@media (max-width: 768px) {
    /* На мобилке чат не занимает место и не сжимает превью */
    .main-layout {
        display: block;
    }
    .chat-sidebar {
        display: none;
    }

    .chat-fab {
        display: flex;
        position: fixed;
        right: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        border: none;
        background: rgba(30, 30, 30, 0.92);
        backdrop-filter: blur(6px);
        align-items: center;
        justify-content: center;
        z-index: 1500;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        cursor: pointer;
    }

    .chat-fab img {
        width: 24px;
        height: 24px;
        filter: brightness(0) invert(1);
    }

    .chat-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.75);
        z-index: 1600;
        padding: 12px;
    }

    .chat-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-modal-inner {
        width: 90%;
        max-width: 520px;
        background: #1e1e1e;
        border-radius: 14px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .chat-modal-header {
        padding: 14px 14px;
        border-bottom: 1px solid #333;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chat-modal-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: rgba(0,0,0,0.35);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .chat-modal-close img {
        width: 18px;
        height: 18px;
        filter: brightness(0) invert(1);
    }

    /* чтобы чат внутри модалки нормально скроллился */
    #chat-messages-modal.chat-messages {
        flex: 1;
        overflow-y: auto;
    }
}

.art-info{
    position: absolute;          /* ВАЖНО: теперь внутри .modal-inner */
    left: 16px;
    bottom: 16px;
    z-index: 1200;               /* выше картинки */
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 12px;
    max-width: min(420px, calc(100% - 32px)); /* в пределах модалки */
    font-size: 14px;
    color: #fff;
    backdrop-filter: blur(6px);
    pointer-events: none;        /* клики проходят на картинку (листание) */
}
.art-info b{ color: #cfcfcf; font-weight: 600; }
.art-info div{ line-height: 1.35; }
.art-card.is-soft-deleted { filter: grayscale(1) opacity(0.55); }
.art-card.is-soft-deleted::after { content: ''; position: absolute; top: 8px; left: 8px; background: rgba(20,20,20,0.75); color: #ddd; font-size: 11px; padding: 3px 6px; border-radius: 6px; }
.reply-preview { margin: 4px 0 6px 0; padding: 6px 8px; border-left: 3px solid #4f79ff; background: rgba(79,121,255,0.12); border-radius: 6px; font-size: 12px; color: #c7d3f8; }
.reply-btn { margin-top: 4px; font-size: 11px; color: #8ea7ff; cursor: pointer; background: none; border: none; padding: 0; }
.chat-reply-box { padding: 8px; background: #1f2633; border: 1px solid #364059; border-radius: 8px; margin-bottom: 8px; font-size: 12px; }

.message-profile-link {
    text-decoration: none;
    color: inherit;
}

.message-profile-link:hover .chat-avatar,
.message-author.message-profile-link:hover {
    filter: brightness(1.1);
}
