/* Chat List Styles */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* 8px'den %10 küçük */
    padding: 2px;
    /* 12px'den %10 küçük */
    overflow-y: auto;
    height: 100%;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    /* 6px'den %10 küçük */
    border-bottom: 1px solid #2a2e35;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #23272f;
    min-height: 64px;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
}

.chat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.chat-item.unread {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.chat-item.unanswered {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.2);
}

.chat-item-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #292d36;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-item-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 7px;
    /* 8px'den %10 küçük */
    padding: 0 5px;
}

.chat-user-name-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.chat-item .chat-user-name {
    font-weight: 500;
    font-size: 13px;
    /* 14px'den %10 küçük */
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    letter-spacing: 0.01em;
}

.chat-user-credits-badge {
    margin-top: 2px;
    padding: 2px 6px;
    /* 7px'den %10 küçük */
    font-size: 11px;
    /* 12px'den %10 küçük */
    font-weight: 600;
    color: #ffd700;
}

/* Online status */
.online-status {
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.9;
    font-weight: 500;
}

/* Message read status - Bubble altında */
.message-read-status {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.8;
    color: #4CAF50;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Chat header online status */
.user-online-status {
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
    opacity: 0.9;
    color: #ccc;
}

.chat-user-credits-badge {
    background: #23272f;
    border-radius: 7px;
    /* 8px'den %10 küçük */
    border: 1.2px solid #ffd70033;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-item .chat-last-message {
    font-size: 13px;
    /* 14px'den %10 küçük */
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.chat-item-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
}

.bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    /* background: #4ECDC4; */
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #4ECDC4;
    color: white;
    font-size: 11px;
    /* 12px'den %10 küçük */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a1a;
}

.chat-time-small {
    font-size: 10px;
    /* 11px'den %10 küçük */
    color: rgba(255, 255, 255, 0.4);
}

.unread-badge {
    background: #667eea;
    color: white;
    font-size: 10px;
    /* 11px'den %10 küçük */
    font-weight: 600;
    padding: 2px 5px;
    /* 6px'den %10 küçük */
    border-radius: 9px;
    /* 10px'den %10 küçük */
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Messages Styles */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* 8px'den %10 küçük */
    padding: 14px;
    /* 16px'den %10 küçük */
    overflow-y: auto;
    height: 100%;
}

/* Message Bubble Styles */
.message-bubble {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    margin-bottom: 0;
    /* Container artık margin'i yönetiyor */
    padding: 12px 16px;
    /* Daha büyük */
    border-radius: 8px;
    /* Daha köşeli */
    line-height: 1.5;
    /* Normal spacing */
    word-wrap: break-word;
    position: relative;
}

.message-bubble.sent {
    align-self: flex-end;
    background: #5865f2;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    align-self: flex-start;
    background: #36393f;
    color: #dcddde;
    border-bottom-left-radius: 4px;
}

.message-bubble .message-content {
    position: relative;
}

.message-bubble .message-content p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Bubble dışı timestamp styling */
.message-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.message-container.sent {
    align-items: flex-end;
}

.message-container.received {
    align-items: flex-start;
}

.message-timestamp-external {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
    padding: 2px 8px;
    text-align: center;
    max-width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-timestamp-external.sent {
    align-self: flex-end;
    text-align: right;
}

.message-timestamp-external.received {
    align-self: flex-start;
    text-align: left;
}

/* Message time styles removed - using external timestamps now */

.message-bubble .message-image {
    max-width: 200px;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-bubble .message-image:hover {
    transform: scale(1.02);
}

.no-messages {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
}

/* OLD MESSAGE STYLES REMOVED - NOW USING message-bubble CLASSES */

/* Chat Input Styles */
.chat-input-container {
    display: flex;
    align-items: center;
    padding: 9px 13px;
    /* 10px 15px'den %10 küçük */
    background: #1e1f22;
    /* Daha koyu arka plan */
    border-top: 1px solid #36393f;
    gap: 9px;
    /* 10px'den %10 küçük */
}

.chat-input {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #2a2e35;
    border-radius: 20px;
    /* 22px'den %10 küçük */
    padding: 0 5px 0 13px;
    /* 15px'den %10 küçük */
}

.chat-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #dcddde;
    font-size: 13px;
    /* 15px'den %10 küçük */
    padding: 9px 0;
    /* 10px'den %10 küçük */
}

.chat-input .icon-btn {
    background: transparent;
    border: none;
    color: #b9bbbe;
    font-size: 18px;
    /* 20px'den %10 küçük */
    cursor: pointer;
    padding: 7px;
    /* 8px'den %10 küçük */
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.chat-input .icon-btn:hover {
    background: #36393f;
    color: #fff;
}

.send-btn {
    background: #5865f2;
    border: none;
    border-radius: 50%;
    width: 40px;
    /* 44px'den %10 küçük */
    height: 40px;
    /* 44px'den %10 küçük */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    /* 18px'den %10 küçük */
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #4a54c9;
    transform: scale(1.05);
}

/* Empty State Styles */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 24px;
}

.chat-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.2);
}

.chat-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.chat-empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

/* Chat System Styles */

/* Keep the messages screen locked to the viewport; only inner panes should scroll. */
#messages.content-section {
    min-height: 0;
    overflow: hidden;
    padding: 8px 20px;
}

#messages.content-section.active {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden !important;
}

#messages .messages-container,
#messages .main-wrapper,
#messages .chat-list,
#messages #user-info-panel,
#messages #bot-info-panel,
#messages #chat-main-area,
#messages .chat-list-wrapper,
#messages #chat-list-container,
#messages .info-panel-content,
#messages #chat-messages {
    min-height: 0;
}

#messages .messages-container,
#messages .main-wrapper,
#messages #chat-main-area {
    flex: 1;
}

#messages .main-wrapper {
    padding: 0;
}

#messages .chat-list-header,
#messages .chat-list-footer,
#messages .chat-header,
#messages .chat-input-container,
#messages .info-panel-footer {
    flex-shrink: 0;
}

/* Messages Container */
.messages-container {
    display: flex;
    flex: 1;
    height: 100%;
    background: #181a20;
    overflow: hidden;
}

.main-wrapper {
    display: flex;
    flex: 1;
    height: 100%;
    width: 100%;
    overflow: hidden;
    gap: 8px;
    /* Panel'lar arası boşluk - azaltıldı */
    padding: 8px;
    /* Container padding - azaltıldı */
    box-sizing: border-box;
}

/* Chat List */
.chat-list {
    flex-shrink: 0;
    width: 270px !important;
    /* 300px'den %10 küçük */
    min-width: 270px !important;
    max-width: 270px !important;
    box-sizing: border-box;
    overflow: hidden;
    background: #23272f;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #333;
    order: 1;
    /* İlk sırada */
}

/* User Info Panel - Sol yan panel */
#user-info-panel {
    flex-shrink: 0;
    width: 330px !important;
    /* 3 fotoğraf için optimize edildi */
    min-width: 330px !important;
    max-width: 330px !important;
    order: 2;
    /* Chat list'ten sonra */
}

/* Chat Area - Orta alan */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 230px;
    /* Panel daraldığı için chat area genişletildi */
    background: #23272f;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    order: 3;
    /* User panel'den sonra */
}

/* Bot Info Panel - Sağ yan panel */
#bot-info-panel {
    flex-shrink: 0;
    width: 330px;
    /* 3 fotoğraf için optimize edildi */
    min-width: 330px;
    max-width: 330px;
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
    order: 4;
    /* En sağda */
    /* Profile.css'teki stilleri inherit etsin */
    background: inherit;
    border-radius: inherit;
    border: inherit;
    padding: inherit;
    padding-top: 4px;
    box-shadow: inherit;
    transition: inherit;
    z-index: 1;
}

.chat-list h3 {
    margin-bottom: 16px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

/* Chat List Wrapper */
.chat-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #23272f;
}

#chat-list-container {
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    background: #23272f;
    box-sizing: border-box;
    min-height: 0;
}

.chat-list-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    background: #23272f;
    border-top: 1px solid #333;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.chat-stats {
    display: flex;
    gap: 15px;
}

/* Chat Search and Filters */
.chat-search {
    padding: 16px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #23272f;
    backdrop-filter: blur(10px);
    margin: 0;
    border-radius: 0;
}

.chat-search input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: rgba(41, 45, 54, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-search input:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: rgba(41, 45, 54, 0.9);
}

.chat-search i {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 14px;
}

.chat-filters {
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: #23272f;
    margin: 0;
    backdrop-filter: blur(10px);
}

.filter-btn {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    background: rgba(41, 45, 54, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    height: 36px;
    backdrop-filter: blur(10px);
}

.filter-btn i {
    font-size: 11px;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Chat Items - Yeni Tasarım */
.chat-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #2a2e35;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #23272f;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
}

.chat-item:last-child {
    border-bottom: none;
}

.chat-item:hover {
    background: #292d36;
}

.chat-item.active {
    background: #292d36;
    border-left: 3px solid #667eea;
    padding-left: 13px;
}

/* Yeni Layout Bileşenleri */
.chat-item-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 65px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #292d36;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-item-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 2px;
    padding: 4px 0;
}

.chat-user-name-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.chat-user-name {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    letter-spacing: 0.01em;
}

.chat-user-credits-badge {
    margin-top: 1px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #ffd700;
    background: #23272f;
    border-radius: 6px;
    border: 1.2px solid #ffd70033;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-item-center .chat-last-message {
    font-size: 13px;
    color: #8b8b8b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.chat-item-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 70px;
}

.bot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    /* background: #4ECDC4; */
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-avatar .bot-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #5865f2;
    border: 2px solid #23272f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 6px;
    box-shadow: 0 1px 3px rgba(88, 101, 242, 0.4);
}

.unread-badge {
    background: #dc3545;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.chat-time-small {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 9px;
    color: #888;
    font-weight: 500;
    background: rgba(35, 39, 47, 0.9);
    padding: 1px 3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1;
}

/* Unread State */
.chat-item.unread {
    background: linear-gradient(135deg, #2a2e3a 0%, #323749 100%);
    border-left: 3px solid #667eea;
    padding-left: 13px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    position: relative;
}

.chat-item.unread:hover {
    background: linear-gradient(135deg, #2e3240 0%, #363a4d 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.chat-item.unread .chat-user-name {
    color: #8fa3ff;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(143, 163, 255, 0.3);
}

.chat-item.unread .chat-last-message {
    color: #e8eaff;
    font-weight: 500;
}

.chat-item.unread .chat-time {
    color: #a8b5ff;
    font-weight: 600;
}

.chat-item.unread::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
    animation: pulse-unread 2s infinite;
}

@keyframes pulse-unread {
    0% {
        box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
        transform: translateY(-50%) scale(1);
    }

    50% {
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.8);
        transform: translateY(-50%) scale(1.1);
    }

    100% {
        box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
        transform: translateY(-50%) scale(1);
    }
}

/* Unanswered State (Cevaplanmamış Mesajlar) */
.chat-item.unanswered {
    background: linear-gradient(135deg, #3a2a1e 0%, #4a3426 100%);
    border-left: 3px solid #f59e0b;
    padding-left: 13px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    position: relative;
}

.chat-item.unanswered:hover {
    background: linear-gradient(135deg, #402e22 0%, #50382a 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.chat-item.unanswered .chat-user-name {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}

.chat-item.unanswered .chat-last-message {
    color: #fef3cd;
    font-weight: 500;
}

.chat-item.unanswered .chat-time-small {
    color: #fbbf24;
    font-weight: 600;
}

.chat-item.unanswered::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    animation: pulse-unanswered 2s infinite;
}

@keyframes pulse-unanswered {
    0% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
        transform: translateY(-50%) scale(1);
    }

    50% {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
        transform: translateY(-50%) scale(1.1);
    }

    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
        transform: translateY(-50%) scale(1);
    }
}

/* Loading State */
.chat-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.chat-item.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Chat Area */
.chat-header {
    flex-shrink: 0;
    border-bottom: 1px solid #333;
    background: #23272f;
    z-index: 10;
    padding: 16px 20px;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    color: white;
    flex: 1;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

/* Chat Title Yeni Tasarım */
.chat-title-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-title-content .user-icon {
    font-size: 16px;
}

.chat-title-content .user-name {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.chat-title-content .divider {
    color: #666;
    font-weight: 400;
}

.chat-title-content .user-age,
.chat-title-content .user-city {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.chat-title-content .user-credits {
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* User Info Badges in Chat Header */
.user-info-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.user-info-badges span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.user-info-badges span:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-info-badges span i {
    font-size: 10px;
    opacity: 0.9;
}

/* Loading Animation for Chat Header */
.loading-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-info i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Error states in chat header */
.chat-header .error-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.chat-header .error-badge.user-not-found {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.chat-header .error-badge.connection-error {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #181a20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 12px 0 10px;
    color: #cbd3df;
}

.date-separator::before,
.date-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    max-width: 220px;
    background: linear-gradient(90deg, transparent, rgba(154, 165, 186, 0.22));
}

.date-separator::after {
    background: linear-gradient(90deg, rgba(154, 165, 186, 0.22), transparent);
}

.date-separator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(124, 135, 160, 0.28);
    background: linear-gradient(180deg, rgba(43, 48, 60, 0.98), rgba(29, 33, 42, 0.98));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #eef2fb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ESKİ MESAJ STILI KALDIRILDI - SADECE message-bubble KULLANILIYOR */

/* Chat Input */
.chat-input-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #1e1f22;
    /* Daha koyu arka plan */
    border-top: 1px solid #36393f;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #2a2e35;
    border-radius: 22px;
    /* Tam yuvarlak kenarlar */
    padding: 0 5px 0 15px;
}

.chat-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #dcddde;
    font-size: 15px;
    padding: 10px 0;
}

.chat-input .icon-btn {
    background: transparent;
    border: none;
    color: #b9bbbe;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.chat-input .icon-btn:hover {
    background: #36393f;
    color: #fff;
}

.send-btn {
    background: #5865f2;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #4a54c9;
    transform: scale(1.05);
}

/* Bot Selector */
#bot-selector {
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#active-bot-select {
    transition: all 0.3s ease;
}

#active-bot-select:focus {
    border-color: #5865f2 !important;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2) !important;
    outline: none !important;
}

#active-bot-select:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: #363a47 !important;
}

#bot-selector button {
    transition: all 0.2s ease;
}

#bot-selector button:hover {
    background: #5865f2 !important;
    transform: scale(1.05);
}

#bot-selector button:active {
    transform: scale(0.98);
}

/* === DARK THEME SCROLLBAR STYLES === */

/* Chat list container scrollbar */
#chat-list-container::-webkit-scrollbar {
    width: 6px;
}

#chat-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#chat-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#chat-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat messages scrollbar */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Info panels scrollbar */
#user-info-panel::-webkit-scrollbar,
#bot-info-panel::-webkit-scrollbar {
    width: 6px;
}

#user-info-panel::-webkit-scrollbar-track,
#bot-info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#user-info-panel::-webkit-scrollbar-thumb,
#bot-info-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#user-info-panel::-webkit-scrollbar-thumb:hover,
#bot-info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* All chats modal scrollbar */
.all-chats-list::-webkit-scrollbar {
    width: 6px;
}

.all-chats-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.all-chats-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.all-chats-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* General dark theme scrollbar for any elements in messages section */
#messages *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#messages *::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#messages *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#messages *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat listte tarih+saati modern ve simetrik göster */
.chat-date-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
    color: #6c757d;
    gap: 2px;
}

.chat-date {
    font-weight: 500;
}

.chat-time {
    font-size: 12px;
}

/* Mesaj balonunda tarih+saati modern göster */
.message-date-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 4px;
}

.message-date-time i {
    color: #b0b0b0;
}

/* Tüm Sohbetler modalı */
.all-chats-modal {
    padding: 4px 0 0;
    width: 100%;
}

.all-chats-modal h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.all-chats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 0 0;
    background: transparent;
    border-bottom: none;
    max-height: 60vh;
    overflow-y: auto;
}

.all-chats-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, #272c34 0%, #22262d 100%);
    border: 1px solid #3a414d;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.all-chats-item:hover {
    transform: translateY(-1px);
    border-color: #5865f2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.all-chats-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #1a1d21;
    border: 2px solid rgba(88, 101, 242, 0.35);
}

.all-chats-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.all-chats-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.all-chats-message {
    color: #c8d0da;
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.all-chats-time {
    color: #98a4b3;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    align-self: start;
    padding-top: 2px;
    margin-left: 8px;
}

#modal-body[data-modal-id="all-user-chats-modal"] {
    padding: 20px;
    background: #23272f;
}

@media (max-width: 720px) {
    .all-chats-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .all-chats-avatar {
        width: 48px;
        height: 48px;
    }

    .all-chats-time {
        grid-column: 2;
        margin-left: 0;
        padding-top: 0;
    }
}

.chat-search-container {
    position: relative;
    width: 100%;
}

.chat-list-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 12px;
    background: #23272f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-search-container input {
    background: #1e2025;
    border: 1px solid #36393f;
    color: #e0e0e0;
    padding: 10px 40px 10px 15px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chat-search-container input::placeholder {
    color: #72767d;
}

.chat-search-container input:focus {
    outline: none;
    border-color: #5865f2;
    background: #23272f;
}

.chat-search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #72767d;
    font-size: 15px;
    transition: all 0.2s ease;
}

.chat-search-container input:focus~i {
    color: #5865f2;
}

.chat-filters-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.chat-filters {
    display: flex;
    align-items: center;
}

.chat-list-header .chat-filters {
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

.chat-list-header .checkbox-filter {
    justify-content: flex-start;
    gap: 8px;
    min-height: 36px;
    margin-top: 0;
    padding: 8px 10px;
}

.chat-list-header .checkbox-filter input[type="checkbox"] {
    flex: 0 0 18px;
    margin-right: 0;
}

.chat-list-header .checkbox-filter label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.35px;
}

/* CHAT HEADER STYLES - END */

/* Medya Arşiv Butonu Özel Stili */
.chat-input .chat-input-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    padding-left: 8px;
}

.chat-input .chat-input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input .input-char-counter {
    min-width: 46px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #dbe3ff;
    opacity: 0.92;
}

.chat-input .chat-input-actions .icon-btn {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chat-input .chat-input-actions .icon-btn i {
    font-size: 15px;
    line-height: 1;
}

.chat-input .btn-media-archive {
    background: linear-gradient(180deg, rgba(255, 177, 46, 0.22), rgba(255, 140, 0, 0.16)) !important;
    border-color: rgba(255, 184, 77, 0.28) !important;
    color: #ffbe5c !important;
}

.chat-input .btn-media-archive:hover {
    background: linear-gradient(180deg, rgba(255, 191, 82, 0.3), rgba(255, 153, 0, 0.22)) !important;
    border-color: rgba(255, 201, 107, 0.42) !important;
    color: #ffd28b !important;
    transform: translateY(-1px);
}

.chat-input .btn-voice-archive {
    background: linear-gradient(180deg, rgba(116, 136, 168, 0.16), rgba(78, 92, 124, 0.14)) !important;
    border-color: rgba(134, 151, 183, 0.2) !important;
    color: #b7c2df !important;
}

.chat-input .btn-voice-archive:hover {
    background: linear-gradient(180deg, rgba(132, 154, 194, 0.22), rgba(88, 106, 145, 0.18)) !important;
    border-color: rgba(162, 181, 220, 0.28) !important;
    color: #dbe6ff !important;
    transform: translateY(-1px);
}

/* ✨ YENİ: Chat - Bot Çoklu Fotoğraf Sistemi */
.photo-count-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    margin: 10px 0;
    background: linear-gradient(135deg, #4ECDC4, #36B5AA);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
    border: 1px solid rgba(78, 205, 196, 0.5);
}

.photo-count-info i {
    font-size: 14px;
}

.compact-photos-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 15px 0;
    padding: 0;
}

.photo-preview-slot {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #444;
    background: #2a2a2a;
}

.photo-preview-slot:hover {
    transform: scale(1.05);
    border-color: #4ECDC4;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.profile-photo-warning-trigger {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 4;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 209, 102, 0.52);
    border-radius: 999px;
    color: #1f1600;
    background: linear-gradient(135deg, #ffd166, #f59e0b);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.92);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.photo-preview-slot:hover .profile-photo-warning-trigger,
.profile-photo-warning-trigger:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.profile-photo-warning-trigger:hover {
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.44);
}

.profile-photo-warning-trigger i {
    font-size: 12px;
    line-height: 1;
}

.photo-preview-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-preview-slot:hover img {
    transform: scale(1.1);
}

.photo-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-photo-slot {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    background: #1e1e1e;
    border: 2px dashed #444;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 11px;
    text-align: center;
    gap: 4px;
}

.empty-photo-slot i {
    font-size: 16px;
    margin-bottom: 2px;
    opacity: 0.7;
}

.empty-photo-slot span {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 500;
}

.empty-photo-slot:hover {
    border-color: #4ECDC4;
    color: #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
}

/* Photo Modal için Chat ekranına özel stiller */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-modal.show {
    opacity: 1;
    visibility: visible;
}

.photo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
}

.photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #333;
    border-bottom: 1px solid #444;
}

.photo-modal-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.photo-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.photo-modal-close:hover {
    background: #444;
}

.photo-modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.photo-modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0;
}

/* Call Notification Styles */
.call-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
    transition: all 0.2s ease;
}

.call-notification:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.call-notification.voice-call {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
}

.call-notification.video-call {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.call-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.voice-call .call-icon {
    background: rgba(34, 197, 94, 0.2);
}

.video-call .call-icon {
    background: rgba(59, 130, 246, 0.2);
}

.call-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.call-type {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.call-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.voice-call .call-type {
    color: #22c55e;
}

.video-call .call-type {
    color: #3b82f6;
}

/* Call notification animations */
@keyframes callPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.call-notification .call-icon {
    animation: callPulse 2s infinite;
}

.voice-call .call-icon {
    animation: callPulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}

.video-call .call-icon {
    animation: callPulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
}

@keyframes callPulseVoice {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes callPulseVideo {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.voice-call .call-icon {
    animation: callPulseVoice 2s infinite;
}

.video-call .call-icon {
    animation: callPulseVideo 2s infinite;
}

/* Admin Call Trigger Buttons */
.chat-title-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.chat-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.call-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    color: white;
}

.voice-call-btn {
    background: linear-gradient(45deg, #22c55e, #16a34a);
}

.voice-call-btn:hover {
    background: linear-gradient(45deg, #16a34a, #15803d);
    transform: scale(1.1);
}

.video-call-btn {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.video-call-btn:hover {
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
    transform: scale(1.1);
}

.call-btn:active {
    transform: scale(0.95);
}

/* Chat header layout fix */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #23272f;
    border-bottom: 1px solid #333;
}

#chat-title {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Mesaj Kısıtlama Stilleri */
.message-restrict-btn {
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 9px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.message-restrict-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    border-color: rgba(220, 53, 69, 0.8);
}

.message-restricted-banner {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #dc3545;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message-restricted-banner i {
    color: #dc3545;
}

.message-restricted-banner small {
    display: block;
    color: #6c757d;
    font-size: 11px;
    margin-top: 2px;
}

.message-content.restricted-message {
    opacity: 0.7;
    filter: grayscale(20%);
}

.message-content.restricted-message .message-image {
    filter: grayscale(50%);
}

.message-content.restricted-message .voice-message-player {
    opacity: 0.6;
}

.voice-message-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-message-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.voice-message-play-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.voice-message-play-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.voice-message-play-btn.playing {
    background: rgba(255, 255, 255, 0.32);
}

.voice-message-duration {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

/* Confirm Modal Stilleri */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40000;
    animation: fadeIn 0.2s ease-out;
}

.confirm-modal {
    position: relative;
    z-index: 40001;
    background: #2c3e50;
    border-radius: 12px;
    padding: 0;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.confirm-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #34495e;
}

.confirm-modal-header h3 {
    margin: 0;
    color: #ecf0f1;
    font-size: 18px;
    font-weight: 600;
}

.confirm-modal-body {
    padding: 20px 24px;
}

.confirm-modal-body p {
    margin: 0;
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.5;
}

.confirm-modal-actions {
    padding: 16px 24px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #7f8c8d;
    color: white;
}

.btn-cancel:hover {
    background: #95a5a6;
}

.btn-confirm {
    background: #e74c3c;
    color: white;
}

.btn-confirm:hover {
    background: #c0392b;
}

.btn-confirm:focus,
.btn-cancel:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Admin Action Buttons */
.admin-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #34495e;
    border-radius: 8px;
    border: 1px solid #2c3e50;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-action-btn:hover {
    background: #d35400;
    transform: translateY(-1px);
}

.admin-action-btn:active {
    transform: translateY(0);
}

.admin-action-btn i {
    font-size: 14px;
}

.token-warning-btn {
    background: #f39c12;
    border: 1px solid #e67e22;
}

.token-warning-btn:hover {
    background: #e67e22;
    border-color: #d35400;
}

.restricted-message-btn {
    background: #e74c3c;
    border: 1px solid #c0392b;
}

.restricted-message-btn:hover {
    background: #c0392b;
    border-color: #a93226;
}

/* Warning Notification Styles */
.warning-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f39c12;
    color: white;
    border-radius: 8px;
    border: 1px solid #e67e22;
    margin: 4px 0;
    font-size: 13px;
}

.warning-notification.token-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.warning-notification.restricted-message {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.warning-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.warning-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.warning-type {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warning-description {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Gift Notification Styles */
.gift-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    border-radius: 12px;
    border: 1.5px solid rgba(233, 30, 99, 0.3);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.gift-notification:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
    border-color: rgba(233, 30, 99, 0.5);
    transform: translateY(-1px);
}

.gift-icon {
    font-size: 20px;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gift-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.gift-type {
    font-size: 10px;
    font-weight: bold;
    color: #e91e63;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gift-description {
    color: #c2185b;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

/* Chat mesajları için stil düzenlemeleri */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Hediye butonları için stil */
.gift-send-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-send-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7575);
    transform: translateY(-2px);
}

/* Hediye icon buton için özel stil */
.icon-btn.gift-send-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.icon-btn.gift-send-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7575);
    transform: translateY(-2px);
}

/* Hediye bildirimi (chat mesajları içinde) - sadece görsel için */
.gift-notification.gift-message {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 182, 193, 0.1)) !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 15px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    backdrop-filter: blur(4px) !important;
    max-width: 280px !important;
    min-height: auto !important;
}

.gift-notification.gift-message .gift-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 12px !important;
    display: block !important;
}

/* Hediye mesajlarında görsel için özel stil */
.gift-message-image,
#chat-messages .gift-message-image,
.message-content .gift-message-image {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin: 0 0 15px 0 !important;
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2) !important;
    cursor: default !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.gift-message-image:hover,
#chat-messages .gift-message-image:hover,
.message-content .gift-message-image:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3) !important;
}

/* Hediye mesajı text için stil */
.gift-message-text {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    display: block !important;
}

/* Hediye icon için stil */
.gift-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 12px !important;
    display: block !important;
}

/* Hediye seçimi modal'i */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* Hediye modal özel z-index */
#gift-selection-modal {
    z-index: 10000 !important;
}

#gift-selection-modal .modal {
    max-width: 600px;
    width: 90%;
}

.gift-item {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gift-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.gift-item.selected {
    border-color: #ff6b6b;
    background: #3a2a2a;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.gift-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.gift-item .gift-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-size: 14px;
}

.gift-item .gift-cost {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 16px;
}

.gift-item .gift-cost::after {
    content: ' jeton';
    font-size: 12px;
    color: #ccc;
}

.gift-message-section {
    margin-top: 20px;
    padding: 15px;
    background: #333;
    border-radius: 8px;
}

.gift-message-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.gift-message-section textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #555;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    background: #2a2a2a;
    color: #fff;
}

.gift-message-section textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

#gift-char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

/* Modal'da hediye seçimi için send butonu */
.gift-send-action {
    margin-top: 20px;
    text-align: center;
}

.gift-send-action button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.gift-send-action button:hover {
    background: linear-gradient(45deg, #ff5252, #ff7575);
    transform: translateY(-2px);
}

.gift-send-action button:disabled {
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    backdrop-filter: blur(4px) !important;
    max-width: 280px !important;
    min-height: auto !important;
}

.gift-notification.gift-message .gift-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 12px !important;
    display: block !important;
}

/* Hediye mesajlarında görsel için özel stil */
.gift-message-image,
#chat-messages .gift-message-image,
.message-content .gift-message-image {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin: 0 0 15px 0 !important;
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2) !important;
    cursor: default !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.gift-message-image:hover,
#chat-messages .gift-message-image:hover,
.message-content .gift-message-image:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3) !important;
}

/* Hediye mesajı text için stil */
.gift-message-text {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    display: block !important;
}

/* Hediye icon için stil */
.gift-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 12px !important;
    display: block !important;
}

/* Hediye seçimi modal'i */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* Hediye modal özel z-index */
#gift-selection-modal {
    z-index: 10000 !important;
}

#gift-selection-modal .modal {
    max-width: 600px;
    width: 90%;
}

.gift-item {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gift-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.gift-item.selected {
    border-color: #ff6b6b;
    background: #3a2a2a;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.gift-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.gift-item .gift-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-size: 14px;
}

.gift-item .gift-cost {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 16px;
}

.gift-item .gift-cost::after {
    content: ' jeton';
    font-size: 12px;
    color: #ccc;
}

.gift-message-section {
    margin-top: 20px;
    padding: 15px;
    background: #333;
    border-radius: 8px;
}

.gift-message-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.gift-message-section textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #555;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    background: #2a2a2a;
    color: #fff;
}

.gift-message-section textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

#gift-char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

/* Modal'da hediye seçimi için send butonu */
.gift-send-action {
    margin-top: 20px;
    text-align: center;
}

.gift-send-action button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.gift-send-action button:hover {
    background: linear-gradient(45deg, #ff5252, #ff7575);
    transform: translateY(-2px);
}

.gift-send-action button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.gift-send-action button:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Checkbox Filter Styles - Symmetrical Design */
.checkbox-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #2a2e35;
    border: 1px solid #36393f;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
}

.checkbox-filter:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #5865f2;
}

.checkbox-filter input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: #333;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
}

.checkbox-filter input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-filter input[type="checkbox"]:checked::after {
    content: '\2713';
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.checkbox-filter label {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Action Buttons (Stories & Posts) */
.profile-actions-row {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
}

.profile-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #2a2e35;
    color: #dcddde;
    border: 1px solid #36393f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
    border-color: #5865f2;
}

.profile-action-btn i {
    font-size: 18px;
}

.profile-action-btn .btn-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 10;
}

.profile-action-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Story Modal Grid */
.story-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
}

.story-modal-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.2s;
}

.story-modal-item:hover {
    border-color: #5865f2;
    transform: scale(1.02);
}

.story-modal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-modal-item .story-status {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.story-modal-item .story-status.active {
    background: #2ecc71;
}

/* Post Modal List */
.post-modal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.post-modal-item {
    background: #2a2e35;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #36393f;
    display: flex;
    gap: 15px;
}

.post-modal-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #1e2124;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-modal-thumb i {
    font-size: 24px;
    color: #72767d;
}

.post-modal-content {
    flex: 1;
    min-width: 0;
}

.post-modal-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-size: 15px;
}

.checkbox-filter input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: #333;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
}

.checkbox-filter input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-filter input[type="checkbox"]:checked::after {
    content: '\2713';
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.checkbox-filter label {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Action Buttons (Stories & Posts) */
.profile-actions-row {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
}

.profile-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #2a2e35;
    color: #dcddde;
    border: 1px solid #36393f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
    border-color: #5865f2;
}

.profile-action-btn i {
    font-size: 18px;
}

.profile-action-btn .btn-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 10;
}

.profile-action-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Story Modal Grid */
.story-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
}

.story-modal-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.2s;
}

.story-modal-item:hover {
    border-color: #5865f2;
    transform: scale(1.02);
}

.story-modal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-modal-item .story-status {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.story-modal-item .story-status.active {
    background: #2ecc71;
}

/* Post Modal List */
.post-modal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.post-modal-item {
    background: #2a2e35;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #36393f;
    display: flex;
    gap: 15px;
}

.post-modal-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #1e2124;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-modal-thumb i {
    font-size: 24px;
    color: #72767d;
}

.post-modal-content {
    flex: 1;
    min-width: 0;
}

.post-modal-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-size: 15px;
}

.checkbox-filter input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: #333;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
}

.checkbox-filter input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-filter input[type="checkbox"]:checked::after {
    content: '\2713';
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.checkbox-filter label {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Action Buttons (Stories & Posts) */
.profile-actions-row {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
}

.profile-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #2a2e35;
    color: #dcddde;
    border: 1px solid #36393f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
    border-color: #5865f2;
}

.profile-action-btn i {
    font-size: 18px;
}

.profile-action-btn .btn-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 10;
}

.profile-action-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Story Modal Grid */
.story-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
}

.story-modal-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.2s;
}

.story-modal-item:hover {
    border-color: #5865f2;
    transform: scale(1.02);
}

.story-modal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-modal-item .story-status {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.story-modal-item .story-status.active {
    background: #2ecc71;
}

/* Post Modal List */
.post-modal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.post-modal-item {
    background: #2a2e35;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #36393f;
    display: flex;
    gap: 15px;
}

.post-modal-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #1e2124;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-modal-thumb i {
    font-size: 24px;
    color: #72767d;
}

.post-modal-content {
    flex: 1;
    min-width: 0;
}

.post-modal-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-size: 15px;
}

.post-modal-body {
    color: #dcddde;
    font-size: 13px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-modal-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #72767d;
}

/* Profile Info Container */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
    gap: 8px;
}

.profile-info.bot-profile-info-compact {
    padding: 2px 15px 6px;
}

.profile-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.profile-header-row.actions-only {
    grid-template-columns: 1fr;
}

.profile-header-row.actions-only .profile-header-actions {
    justify-self: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.profile-header-row.actions-only .profile-actions-inline,
.profile-header-row.actions-only .profile-badges-inline {
    justify-content: center;
}

.bot-profile-header-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.bot-profile-header-stacked .profile-header-name {
    width: 100%;
    text-align: center;
}

.bot-profile-header-stacked .profile-header-actions {
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.bot-profile-header-stacked .profile-actions-inline {
    justify-content: center;
}

.profile-info h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-actions-inline {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.profile-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
}

.profile-status.online {
    background-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

.profile-status.offline {
    background-color: #95a5a6;
}

/* Info Panel Layout for Fixed Footer */
#user-info-panel,
#bot-info-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    /* Override default overflow */
}

.info-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 10px;
}

.info-panel-footer {
    flex-shrink: 0;
    background: #23272f;
    /* Match panel background */
    z-index: 5;
}

/* Info Panel Actions (Show All Chats Button) */
.info-panel-actions {
    padding: 15px;
    border-top: 1px solid #36393f;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.info-panel-actions button {
    flex: 1 1 0;
    min-width: 0;
    width: 100% !important;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px !important;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
}

.info-panel-statuses {
    padding: 15px;
    border-top: 1px solid #36393f;
    display: flex;
    justify-content: center;
}

.info-panel-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.info-panel-status-badge.nearby {
    color: #d9ffe9;
    background: linear-gradient(135deg, rgba(26, 127, 84, 0.95), rgba(34, 197, 94, 0.88));
    border: 1px solid rgba(110, 231, 183, 0.4);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.18);
}

.info-panel-actions .btn {
    min-width: 0 !important;
}

.info-panel-actions button i {
    flex: 0 0 auto;
    margin: 0;
    font-size: 12px;
    line-height: 1;
}

.info-panel-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-panel-actions>button {
    order: 1;
}

.info-panel-actions>.profile-moderation-actions {
    order: 2;
    flex: 1 0 100%;
    padding: 8px 0 0;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-moderation-actions .btn-outline-warning {
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.35);
    background: rgba(255, 209, 102, 0.08);
}

.profile-moderation-actions .btn-outline-warning:hover {
    color: #1f1600;
    background: linear-gradient(135deg, #ffd166, #f59e0b);
    border-color: rgba(255, 209, 102, 0.8);
}

.profile-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-section-title-row>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.profile-section-title-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
}

.profile-section-title-icon {
    flex: 0 0 auto;
    color: #6d8cff;
}

.profile-bio-warning-trigger {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(255, 209, 102, 0.34);
    border-radius: 999px;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.08);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.profile-bio-warning-trigger:hover {
    color: #1f1600;
    background: linear-gradient(135deg, #ffd166, #f59e0b);
    border-color: rgba(255, 209, 102, 0.78);
    transform: translateY(-1px);
}

.profile-bio-warning-trigger i {
    font-size: 10px;
    line-height: 1;
}

.profile-moderation-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
}

.profile-moderation-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(37, 42, 51, 0.98), rgba(27, 31, 39, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-moderation-summary h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.profile-moderation-summary p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.45;
}

.profile-moderation-warning-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
}

.profile-moderation-warning-preview img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 209, 102, 0.36);
    background: rgba(255, 255, 255, 0.04);
}

.profile-moderation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.profile-moderation-photo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
    background: #1b1f27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.profile-moderation-photo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.45);
}

.profile-moderation-photo-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-moderation-photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #10131a;
}

.profile-moderation-photo-select {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: rgba(10, 12, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 2;
}

.profile-moderation-photo-card:has(input:checked) {
    border-color: rgba(255, 209, 102, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.18);
}

.profile-moderation-photo-card:has(input:checked) .profile-moderation-photo-select {
    color: #1f1600;
    background: #ffd166;
}

.profile-moderation-photo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
}

.profile-moderation-photo-meta small {
    color: rgba(255, 255, 255, 0.52);
}

.profile-moderation-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.profile-moderation-alert {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 209, 102, 0.28);
    background: rgba(255, 209, 102, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.profile-moderation-alert i {
    color: #ffd166;
    font-size: 20px;
    margin-top: 2px;
}

.profile-moderation-alert strong,
.profile-moderation-alert span {
    display: block;
}

.profile-moderation-alert strong {
    color: #fff;
    margin-bottom: 4px;
}

.profile-moderation-copy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-moderation-copy-card {
    min-height: 150px;
    padding: 16px;
    border-radius: 14px;
    background: #1b1f27;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-moderation-copy-card.target {
    border-color: rgba(255, 209, 102, 0.32);
    background: linear-gradient(145deg, rgba(255, 209, 102, 0.08), rgba(27, 31, 39, 0.98));
}

.profile-moderation-copy-card span {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-moderation-copy-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    .profile-moderation-summary,
    .profile-moderation-copy-grid {
        grid-template-columns: 1fr;
    }

    .profile-moderation-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Small Profile Action Buttons */
.profile-action-btn.small {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-action-btn.small i {
    font-size: 14px;
}

.profile-action-btn.small:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #fff;
}

.profile-action-btn.profile-refresh-action {
    color: #c7d2fe;
    border-color: rgba(102, 126, 234, 0.28);
    background: rgba(102, 126, 234, 0.12);
}

.profile-action-btn.profile-refresh-action:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.24);
    border-color: rgba(102, 126, 234, 0.55);
}

.profile-action-btn.profile-refresh-action:disabled {
    cursor: wait;
    opacity: 0.72;
}

/* ==================== */
/* Like/Super Like Badges */
/* ==================== */

/* Chat Header Like Badges */
.like-status-badges {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    flex-wrap: wrap;
}

.like-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: badgePulse 2s ease-in-out infinite;
}

.like-badge.match {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

.like-badge.super-like {
    background: linear-gradient(135deg, #f9d423, #ff4e50);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 212, 35, 0.4);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Info Panel Like Badges */
.like-status-section {
    margin-top: 8px;
    min-height: 0;
}

.profile-section-title-actions .like-status-section {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
}

.like-badge-panel {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.profile-section-title-actions .like-badge-panel {
    height: 22px;
    margin-top: 0;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    gap: 4px;
    white-space: nowrap;
}

.like-badge-panel.like {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.like-badge-panel.super-like {
    background: linear-gradient(135deg, rgba(249, 212, 35, 0.2), rgba(255, 78, 80, 0.1));
    border: 1px solid rgba(249, 212, 35, 0.4);
    color: #f9d423;
}

.like-badge-panel.bot-like {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #a855f7;
}

/* Profile Header Actions Layout */
.profile-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    width: auto;
    min-width: max-content;
    max-width: 100%;
}

.profile-badges-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.profile-badges-inline .badge {
    font-size: 11px;
    padding: 3px 8px;
    white-space: nowrap;
}

.profile-badges-inline .profile-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 4px;
}

.profile-badges-inline .profile-status.online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.profile-badges-inline .profile-status.offline {
    background: #6b7280;
}

/* Premium Badge Types */
.badge.premium {
    color: #fff;
    border: 1px solid transparent;
}

.badge.premium.gold {
    background: linear-gradient(135deg, #ffd700 0%, #fdb931 100%);
    border-color: #ffd700;
    color: #000;
    text-shadow: none;
    font-weight: 700;
}

.badge.premium.gold i {
    color: #000;
}

.badge.premium.silver {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-color: #e0e0e0;
    color: #333;
    text-shadow: none;
    font-weight: 700;
}

.badge.premium.silver i {
    color: #333;
}

.badge.premium.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    border-color: #cd7f32;
    color: #fff;
    font-weight: 600;
}

.badge.premium.bronze i {
    color: #fff;
}

.badge.nearby-pool {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border-color: rgba(34, 197, 94, 0.65);
    color: #f0fdf4;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.22);
}

.badge.nearby-pool i {
    color: #dcfce7;
}

.cosmetics-modal-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
}

.cosmetics-modal-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, #252a33, #1d222b);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cosmetics-modal-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #23272f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cosmetics-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cosmetics-modal-summary-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cosmetics-modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.cosmetics-modal-title-row h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cosmetics-modal-kind {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.14);
    border: 1px solid rgba(102, 126, 234, 0.26);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cosmetics-modal-counts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cosmetics-modal-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d6d9e0;
    font-size: 12px;
    font-weight: 600;
}

.cosmetics-modal-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cosmetics-modal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cosmetics-modal-section-header h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.cosmetics-modal-section-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.16);
    color: #c7d2fe;
    border: 1px solid rgba(88, 101, 242, 0.26);
    font-size: 12px;
    font-weight: 700;
}

.cosmetics-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.cosmetic-modal-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, #23272f, #1b1f27);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.cosmetic-modal-thumb {
    height: 116px;
    border-radius: 12px;
    overflow: hidden;
    background: #181c23;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cosmetic-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 55%);
}

.cosmetic-modal-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 22px;
}

.cosmetic-modal-thumb.rarity-common {
    box-shadow: inset 0 0 0 1px rgba(156, 163, 175, 0.18);
}

.cosmetic-modal-thumb.rarity-rare {
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.24);
}

.cosmetic-modal-thumb.rarity-epic {
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.26);
}

.cosmetic-modal-thumb.rarity-legendary {
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 18px rgba(245, 158, 11, 0.12);
}

.cosmetic-modal-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cosmetic-modal-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cosmetic-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cosmetic-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}

.cosmetic-item-badge.slot {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border-color: rgba(255, 255, 255, 0.06);
}

.cosmetic-item-badge.equipped {
    background: rgba(34, 197, 94, 0.16);
    color: #dcfce7;
    border-color: rgba(34, 197, 94, 0.28);
}

.cosmetic-item-badge.rarity {
    text-transform: capitalize;
}

.cosmetic-item-badge.rarity.rarity-common {
    background: rgba(156, 163, 175, 0.16);
    color: #e5e7eb;
    border-color: rgba(156, 163, 175, 0.26);
}

.cosmetic-item-badge.rarity.rarity-rare {
    background: rgba(59, 130, 246, 0.16);
    color: #dbeafe;
    border-color: rgba(59, 130, 246, 0.26);
}

.cosmetic-item-badge.rarity.rarity-epic {
    background: rgba(168, 85, 247, 0.16);
    color: #f3e8ff;
    border-color: rgba(168, 85, 247, 0.26);
}

.cosmetic-item-badge.rarity.rarity-legendary {
    background: rgba(245, 158, 11, 0.16);
    color: #fef3c7;
    border-color: rgba(245, 158, 11, 0.26);
}

.empty-state.compact {
    min-height: 120px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Admin Message Tag */

/* Admin Message Tag (Inline) */
.msg-admin-tag-inline {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 6px;
    /* Space between admin name and time */
    font-weight: 500;
}

.msg-admin-tag-inline i {
    font-size: 9px;
}

/* Message Timestamp External Container */
.message-timestamp-external {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 4px;
}

.message-timestamp-external.sent {
    justify-content: flex-end;
}

.message-timestamp-external.received {
    justify-content: flex-start;
}

.chat-input-container.chat-blocked-by-user {
    background: #241c2f;
    border-top-color: rgba(255, 107, 107, 0.22);
}

.chat-input-container .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

#chat-messages .message-container.system {
    align-items: center;
}

#chat-messages .block-system-notice {
    max-width: 460px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.18), rgba(88, 101, 242, 0.12));
    border: 1px solid rgba(255, 107, 107, 0.25);
    color: #f3f4f6;
    border-bottom-left-radius: 8px;
}

#chat-messages .block-system-notice .message-content p {
    margin: 0;
    text-align: center;
}
