/* === СОВРЕМЕННАЯ СИСТЕМА ЧАТА === */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.chat-message {
    display: flex;
    gap: 10px;
    padding: 12px;
    animation: fadeInUp 0.3s ease;
    margin-bottom: 6px;
}

.chat-message.admin {
    flex-direction: row-reverse;
    padding-left: 48px;
}

.chat-message.user {
    flex-direction: row;
    padding-right: 48px;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, var(--pixel-cyan), #0891b2);
}

.admin-avatar {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.message-bubble {
    max-width: 70%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    position: relative;
}

.chat-message.admin .message-bubble {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.chat-message.user .message-bubble {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.sender-name {
    font-weight: 600;
    color: var(--pixel-cyan);
}

.chat-message.admin .sender-name {
    color: #22c55e;
}

.message-timestamp {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

.message-text {
    color: var(--pixel-white);
    line-height: 1.4;
    word-wrap: break-word;
    font-size: 14px;
    margin-bottom: 6px;
}

.message-attachment {
    margin-top: 12px;
}

/* === GRID ДЛЯ НЕСКОЛЬКИХ ФАЙЛОВ === */
.message-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
    max-width: 600px; /* Ограничение ширины */
}

.message-attachment-image {
    width: 100%;
    height: 140px; /* Фиксированная высота для квадратов */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.message-attachment-image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.4);
}

.message-attachment-video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.message-attachment-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--pixel-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.message-attachment-file:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.8));
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateX(5px);
}

.message-attachment-file::before {
    content: '📎';
    font-size: 20px;
}

.image-attachment {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    max-width: 300px;
}

.image-attachment:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.image-attachment img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-attachment {
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
}

.video-attachment video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px 20px;
}

.chat-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--pixel-cyan);
    opacity: 0.6;
}

.chat-empty-state p {
    font-size: 16px;
    margin: 0;
}

/* === МОДАЛЬНЫЕ ОКНА ТИКЕТОВ === */

.modern-ticket-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.ticket-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ticket-type-badge-modal {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-type-badge-modal.replacement {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.ticket-type-badge-modal.discovery {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.ticket-type-badge-modal.general {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.ticket-status-badge-modal {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-status-badge-modal.open {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ticket-status-badge-modal.in_progress {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.ticket-status-badge-modal.closed {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.ticket-status-badge-modal.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ticket-title-modal {
    color: var(--pixel-white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ticket-description-modal {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ticket-meta-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}

.ticket-date-modern {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reward-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22c55e;
    font-weight: 600;
}

.admin-note-modal {
    padding: 16px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    color: #f97316;
    margin-top: 16px;
    line-height: 1.5;
}

/* === TELEGRAM-СТИЛЬ ВВОДА СООБЩЕНИЙ === */

.telegram-input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.telegram-textarea {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 12px 16px;
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.2s ease;
    outline: none;
    line-height: 1.4;
}

.telegram-textarea:focus {
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.telegram-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Стили для многострочного режима */
.telegram-input-container.multiline {
    align-items: flex-end;
}

.telegram-input-container.multiline .telegram-textarea {
    padding: 12px 16px 12px 16px;
}

.telegram-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.telegram-file-btn,
.telegram-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.telegram-file-btn {
    background: rgba(0, 255, 255, 0.1);
    color: var(--pixel-cyan);
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.telegram-file-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--pixel-cyan);
    transform: scale(1.05);
}

.telegram-send-btn {
    background: linear-gradient(135deg, var(--pixel-cyan), #0891b2);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
}

.telegram-send-btn:hover {
    background: linear-gradient(135deg, #0891b2, var(--pixel-cyan));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.4);
}

.telegram-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === ПРЕДПРОСМОТР ФАЙЛОВ СВЕРХУ === */

.message-file-preview-container {
    padding: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    max-height: 200px;
    overflow-y: auto;
}

.telegram-file-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === ПРЕДПРОСМОТР С МИНИАТЮРАМИ КАРТИНОК === */

.telegram-file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 0;
}

.preview-image-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Квадратное соотношение */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideInFromTop 0.3s ease;
}

.preview-image-item:hover {
    border-color: var(--pixel-cyan);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.preview-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(138, 43, 226, 0.1));
    color: var(--pixel-cyan);
    font-size: 14px;
}

.preview-video-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.preview-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.9;
}

.preview-remove-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.preview-remove-btn i {
    font-size: 12px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .telegram-file-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .preview-remove-btn {
        width: 24px;
        height: 24px;
        top: 4px;
        right: 4px;
        font-size: 12px;
    }
    
    .preview-video-placeholder i {
        font-size: 24px;
    }
    
    .preview-video-placeholder span {
        font-size: 12px;
    }
}

/* === СТАРЫЕ ПРОСТЫЕ СТИЛИ (НА СЛУЧАЙ ЕСЛИ ПОНАДОБЯТСЯ) === */

.simple-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
    animation: slideInFromTop 0.3s ease;
}

.simple-file-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
}

.file-link {
    color: var(--pixel-cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    transition: all 0.2s ease;
}

.file-link:hover {
    color: var(--pixel-cyan-light);
    text-decoration: underline;
}

.simple-file-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.simple-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fff;
    transform: scale(1.1);
}

/* === СТАРЫЕ СТИЛИ ДЛЯ ОБРАТНОЙ СОВМЕСТИМОСТИ === */

.telegram-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
    animation: slideInFromTop 0.3s ease;
}

.telegram-file-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
}

.telegram-file-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.telegram-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.telegram-file-thumb i {
    color: var(--pixel-cyan);
    font-size: 20px;
}

.telegram-file-info {
    flex: 1;
    min-width: 0;
}

.telegram-file-name {
    color: var(--pixel-white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.telegram-file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.telegram-file-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.telegram-file-remove:hover {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    transform: scale(1.1);
}

/* === АНИМАЦИИ === */

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === АДАПТИВНОСТЬ ДЛЯ TELEGRAM-СТИЛЯ === */

@media (max-width: 768px) {
    .telegram-input-container {
        padding: 12px;
    }
    
    .telegram-textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 10px 14px;
        min-height: 40px;
    }
    
    .telegram-file-btn,
    .telegram-send-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .message-file-preview-container {
        padding: 12px;
        max-height: 150px;
    }
    
    /* Адаптивные стили для простого предпросмотра */
    .simple-file-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .file-link {
        font-size: 13px;
    }
    
    .simple-file-remove {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    /* Старые стили */
    .telegram-file-item {
        padding: 6px 10px;
    }
    
    .telegram-file-thumb {
        width: 40px;
        height: 40px;
    }
    
    .telegram-file-name {
        font-size: 13px;
    }
    
    .telegram-file-size {
        font-size: 11px;
    }
    
    .telegram-file-remove {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* === ФОРМА СООБЩЕНИЙ === */

.modern-message-form {
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ПОЛНОЕ СКРЫТИЕ ФОРМЫ ДЛЯ НЕ-GENERAL ТИКЕТОВ */
#messageForm[style*="display: none"],
.message-form[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modern-message-form textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
}

.modern-message-form textarea:focus {
    border-color: var(--pixel-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2);
}

.message-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.message-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-file-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--pixel-cyan);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-file-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--pixel-cyan);
    transform: translateY(-1px);
}

.message-send-btn {
    background: linear-gradient(135deg, var(--pixel-cyan), #0891b2);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-send-btn:hover {
    background: linear-gradient(135deg, #0891b2, var(--pixel-cyan));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.message-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ === */

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.image-modal-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border-radius: 16px;
    padding: 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.image-modal-close:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.image-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* === АДАПТИВНОСТЬ ЧАТА === */

@media (max-width: 768px) {
    .chat-message {
        padding: 10px 6px;
    }
    
    .chat-message.admin {
        padding-left: 36px;
    }
    
    .chat-message.user {
        padding-right: 36px;
    }
    
    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .message-bubble {
        max-width: 90%;
        padding: 8px 10px;
    }
    
    .ticket-title-modal {
        font-size: 20px;
    }
    
    .ticket-description-modal {
        font-size: 14px;
    }
    
    .ticket-meta-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modern-message-form {
        padding: 16px;
    }
    
    .message-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .image-attachment,
    .video-attachment {
        max-width: 250px;
    }
    
    .message-attachments-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
    }
    
    .message-attachment-image,
    .message-attachment-video {
        height: 120px;
    }
    
    .image-modal-container {
        padding: 16px;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .image-modal-content img {
        max-height: 70vh;
    }
}

/* ================================
   UNREAD NOTIFICATIONS STYLES
   ================================ */

.modern-ticket-card.has-unread {
    border: 2px solid #ff3366 !important;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3) !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 51, 102, 0.5);
    }
}

.unread-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #ff3366;
    font-size: 12px;
    animation: blink-dot 1.5s ease-in-out infinite;
    z-index: 5;
}

@keyframes blink-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.new-reply-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.4);
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification badge on navigation button */
.notification-badge {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background: #ff3366 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.5) !important;
    z-index: 10 !important;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 51, 102, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(255, 51, 102, 0.8);
    }
}

.notification-badge {
    animation: pulse-badge 2s ease-in-out infinite !important;
}