/* ============================================================================
   CHAT COMPONENT STYLES
   ============================================================================ */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
 overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

body[data-theme="neuro"] .chat-container {
    background: var(--neuro-bg-secondary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 217, 255, 0.05);
}

body[data-theme="evil"] .chat-container {
    background: var(--evil-bg-secondary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 0, 102, 0.05);
}

body[data-theme="twins"] .chat-container {
    background: var(--twins-bg-secondary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(157, 92, 255, 0.05);
}

/* ============================================================================
   HEADER
   ============================================================================ */

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

body[data-theme="neuro"] .chat-header {
    background: var(--neuro-bg-primary);
}

body[data-theme="evil"] .chat-header {
    background: var(--evil-bg-primary);
}

body[data-theme="twins"] .chat-header {
    background: var(--twins-bg-primary);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-title {
    font-weight: 700;
    font-size: var(--text-base);
}

.chat-user-count {
    display: flex;
    align-items: center;
    gap: 4px;
 font-size: var(--text-xs);
    padding: 2px 8px;
 border-radius: 12px;
}

body[data-theme="neuro"] .chat-user-count {
  background: rgba(0, 217, 255, 0.08);
}

body[data-theme="evil"] .chat-user-count {
    background: rgba(255, 0, 102, 0.08);
}

body[data-theme="twins"] .chat-user-count {
    background: rgba(157, 92, 255, 0.08);
}

/* ============================================================================
   MESSAGES AREA
 ============================================================================ */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

body[data-theme="neuro"] .chat-messages {
    background: var(--neuro-bg-primary);
}

body[data-theme="evil"] .chat-messages {
    background: var(--evil-bg-primary);
}

body[data-theme="twins"] .chat-messages {
    background: var(--twins-bg-primary);
}

.chat-loading,
.chat-empty {
  display: flex;
  flex-direction: column;
    align-items: center;
  justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 200px;
}

.chat-load-more {
    display: flex;
    justify-content: center;
    padding: 4px 0 8px;
    flex-shrink: 0;
}

/* ============================================================================
   MESSAGE ITEM
   ============================================================================ */

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
    position: relative;
    animation: messageSlideIn 0.2s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
  transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body[data-theme="neuro"] .chat-message:hover {
    background: rgba(0, 217, 255, 0.04);
}

body[data-theme="evil"] .chat-message:hover {
    background: rgba(255, 0, 102, 0.04);
}

body[data-theme="twins"] .chat-message:hover {
    background: rgba(157, 92, 255, 0.04);
}

.chat-message:hover .message-actions {
    opacity: 1;
}

.message-avatar-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
}

.message-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.message-author {
    font-weight: 600;
    font-size: var(--text-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

body[data-theme="neuro"] .admin-name {
    color: var(--neuro-primary) !important;
}

body[data-theme="evil"] .admin-name {
    color: var(--evil-primary) !important;
}

body[data-theme="twins"] .admin-name {
 color: var(--twins-primary) !important;
}

.admin-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
  letter-spacing: 0.5px;
    line-height: 1.4;
}

.message-time {
    font-size: 0.6875rem;
    flex-shrink: 0;
}

.message-content {
    font-size: var(--text-sm);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.message-content .chat-emoji-inline {
    display: inline-block;
    vertical-align: middle;
    font-weight: 900;
    grid-column: 1;
    grid-row: 1;
    margin: auto;
    object-fit: contain;
}

/* Message actions (admin delete/timeout) */
.message-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

.message-actions .mud-icon-button {
    padding: 4px !important;
}

.reply-btn {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.reply-btn:hover {
    opacity: 1 !important;
}

/* Reply preview (shown above message content when replying to another message) */
.reply-preview {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    padding: 2px 6px;
    margin-bottom: 2px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
}

body[data-theme="neuro"] .reply-preview {
    background: rgba(0, 217, 255, 0.06);
    border-left-color: rgba(0, 217, 255, 0.3);
}

body[data-theme="evil"] .reply-preview {
    background: rgba(255, 0, 102, 0.06);
    border-left-color: rgba(255, 0, 102, 0.3);
}

body[data-theme="twins"] .reply-preview {
    background: rgba(157, 92, 255, 0.06);
    border-left-color: rgba(157, 92, 255, 0.3);
}

.reply-preview:hover {
    opacity: 0.8;
}

.reply-preview-author {
    font-weight: 600;
    flex-shrink: 0;
}

.reply-preview-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Reply indicator bar above the input */
.reply-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: var(--text-xs);
    animation: suggestionsSlideUp 0.15s ease-out;
}

body[data-theme="neuro"] .reply-indicator {
    background: rgba(0, 217, 255, 0.06);
}

body[data-theme="evil"] .reply-indicator {
    background: rgba(255, 0, 102, 0.06);
}

body[data-theme="twins"] .reply-indicator {
    background: rgba(157, 92, 255, 0.06);
}

.reply-indicator-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Message highlight animation (when scrolling to a replied-to message) */
.chat-message-highlight {
    animation: messageHighlight 1.5s ease;
}

@keyframes messageHighlight {
    0%, 20% {
        background: rgba(255, 255, 255, 0.1);
    }
    100% {
        background: transparent;
    }
}

/* System message */
.system-message {
    justify-content: center;
    padding: 4px 8px !important;
}

.system-message-content {
  display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-style: italic;
}

/* Deleted message */
.deleted-message {
    opacity: 0.5;
}

.deleted-message-content {
    font-size: var(--text-xs);
    font-style: italic;
    padding: 4px 0;
}

/* Bot messages (NeuroCop / EvilCop) */
.bot-message {
    border-left: 2px solid transparent;
    padding-left: 10px !important;
}

.bot-message-neuro {
    border-left-color: #00d9ff;
    background: rgba(0, 217, 255, 0.04);
}

.bot-message-evil {
    border-left-color: #ff0066;
    background: rgba(255, 0, 102, 0.04);
}

.bot-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.bot-avatar-clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bot-avatar-clickable:hover {
    transform: scale(1.15);
}

.bot-name-clickable {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.bot-name-clickable:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bot-avatar-neuro {
    box-shadow: 0 0 6px rgba(0, 217, 255, 0.4);
}

.bot-avatar-evil {
    box-shadow: 0 0 6px rgba(255, 0, 102, 0.4);
}

.bot-name-neuro {
    color: #00d9ff !important;
    font-weight: 700;
}

.bot-name-evil {
    color: #ff0066 !important;
    font-weight: 700;
}

.bot-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.bot-badge-neuro {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
}

.bot-badge-evil {
    background: rgba(255, 0, 102, 0.15);
    color: #ff0066;
}

/* ============================================================================
   INPUT AREA
   ============================================================================ */

.chat-input-area {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

body[data-theme="neuro"] .chat-input-area {
    background: var(--neuro-bg-secondary);
}

body[data-theme="evil"] .chat-input-area {
    background: var(--evil-bg-secondary);
}

body[data-theme="twins"] .chat-input-area {
    background: var(--twins-bg-secondary);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 24px;
 padding: 4px 8px;
    transition: all 0.2s ease;
}

body[data-theme="neuro"] .chat-input-wrapper {
    background: var(--neuro-bg-elevated);
    border: 1px solid rgba(0, 217, 255, 0.12);
}

body[data-theme="neuro"] .chat-input-wrapper:focus-within {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.1);
}

body[data-theme="evil"] .chat-input-wrapper {
 background: var(--evil-bg-elevated);
    border: 1px solid rgba(255, 0, 102, 0.12);
}

body[data-theme="evil"] .chat-input-wrapper:focus-within {
    border-color: rgba(255, 0, 102, 0.4);
    box-shadow: 0 0 12px rgba(255, 0, 102, 0.1);
}

body[data-theme="twins"] .chat-input-wrapper {
    background: var(--twins-bg-elevated);
  border: 1px solid rgba(157, 92, 255, 0.12);
}

body[data-theme="twins"] .chat-input-wrapper:focus-within {
    border-color: rgba(157, 92, 255, 0.4);
    box-shadow: 0 0 12px rgba(157, 92, 255, 0.1);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--text-sm);
    padding: 8px 4px;
    min-width: 0;
font-family: inherit;
}

.chat-input::placeholder {
    opacity: 0.4;
}

.emoji-picker-btn:hover {
    opacity: 1 !important;
}

body[data-theme="neuro"] .send-btn:not([disabled]):hover {
    color: var(--neuro-primary-light) !important;
}

body[data-theme="evil"] .send-btn:not([disabled]):hover {
    color: var(--evil-primary-light) !important;
}

body[data-theme="twins"] .send-btn:not([disabled]):hover {
    color: var(--twins-primary-light) !important;
}

.timeout-notice,
.login-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: var(--text-sm);
    border-radius: 8px;
}

body[data-theme="neuro"] .timeout-notice,
body[data-theme="neuro"] .login-notice {
    background: rgba(0, 217, 255, 0.04);
}

body[data-theme="evil"] .timeout-notice,
body[data-theme="evil"] .login-notice {
    background: rgba(255, 0, 102, 0.04);
}

body[data-theme="twins"] .timeout-notice,
body[data-theme="twins"] .login-notice {
background: rgba(157, 92, 255, 0.04);
}

.chat-restricted-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.6875rem;
    color: var(--neuro-text-muted, rgba(255,255,255,0.45));
    background: rgba(255, 170, 0, 0.06);
    border-top: 1px solid rgba(255, 170, 0, 0.15);
}

/* ============================================================================
   EMOJI SUGGESTIONS (Autocomplete dropdown)
   ============================================================================ */

.emoji-suggestions {
    position: absolute;
    bottom: 62px;
    left: 12px;
    right: 12px;
  border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: suggestionsSlideUp 0.15s ease-out;
}

@keyframes suggestionsSlideUp {
    from {
    opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.emoji-suggestion-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.emoji-suggestion-name {
    font-size: var(--text-sm);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emoji-source-badge {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

body[data-theme="neuro"] .emoji-source-badge {
    background: rgba(0, 217, 255, 0.08);
}

body[data-theme="evil"] .emoji-source-badge {
    background: rgba(255, 0, 102, 0.08);
}

body[data-theme="twins"] .emoji-source-badge {
    background: rgba(157, 92, 255, 0.08);
}

/* ============================================================================
   EMOJI PICKER
   ============================================================================ */

.emoji-picker {
    position: absolute;
    bottom: 62px;
 left: 12px;
    right: 12px;
    border-radius: 12px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: pickerSlideUp 0.2s ease-out;
    overflow: hidden;
}

@keyframes pickerSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-picker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.emoji-search-input {
    flex: 1;
 background: transparent;
border: none;
    outline: none;
    font-size: var(--text-sm);
    padding: 6px 4px;
font-family: inherit;
}

.emoji-search-input::placeholder {
    opacity: 0.4;
}

.emoji-picker-tabs {
    display: flex;
    gap: 4px;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emoji-tab {
    background: transparent;
    border: none;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: var(--text-xs);
    font-weight: 500;
  cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

body[data-theme="neuro"] .emoji-tab.active {
    background: rgba(0, 217, 255, 0.15);
    color: var(--neuro-primary) !important;
}

body[data-theme="neuro"] .emoji-tab:hover:not(.active) {
 background: rgba(0, 217, 255, 0.08);
}

body[data-theme="evil"] .emoji-tab.active {
    background: rgba(255, 0, 102, 0.15);
    color: var(--evil-primary) !important;
}

body[data-theme="evil"] .emoji-tab:hover:not(.active) {
    background: rgba(255, 0, 102, 0.08);
}

body[data-theme="twins"] .emoji-tab.active {
    background: rgba(157, 92, 255, 0.15);
  color: var(--twins-primary) !important;
}

body[data-theme="twins"] .emoji-tab:hover:not(.active) {
    background: rgba(157, 92, 255, 0.08);
}

.emoji-grid {
  display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 4px;
    padding: 10px;
    overflow-y: auto;
    flex: 1;
  min-height: 0;
}

.emoji-item {
    width: 36px;
  height: 36px;
    display: flex;
    align-items: center;
 justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.15s ease;
    padding: 4px;
}

.emoji-item:hover {
    transform: scale(1.2);
}

body[data-theme="neuro"] .emoji-item:hover {
    background: rgba(0, 217, 255, 0.12);
}

body[data-theme="evil"] .emoji-item:hover {
    background: rgba(255, 0, 102, 0.12);
}

body[data-theme="twins"] .emoji-item:hover {
    background: rgba(157, 92, 255, 0.12);
}

.emoji-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.emoji-loading,
.emoji-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-size: var(--text-sm);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .chat-container {
        border-radius: 0;
        border: none;
        height: 500px;
    }

    .chat-header {
        padding: 10px 12px;
    }

    .chat-messages {
  padding: 8px;
    }

    .chat-message {
        padding: 4px 6px;
  }

    .message-author {
        max-width: 100px;
    }

    .emoji-picker {
        left: 4px;
      right: 4px;
        max-height: 280px;
    }

    .emoji-suggestions {
        left: 4px;
     right: 4px;
    }
}

@media (max-width: 480px) {
    .message-time {
        display: none;
    }

    .emoji-grid {
      grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    }

    .emoji-item {
        width: 32px;
        height: 32px;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .chat-message,
    .emoji-suggestions,
.emoji-picker,
    .emoji-item {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    body[data-theme="neuro"] .chat-container {
        border-color: var(--neuro-primary);
    }

    body[data-theme="evil"] .chat-container {
        border-color: var(--evil-primary);
    }

    body[data-theme="twins"] .chat-container {
        border-color: var(--twins-primary);
    }
}

/* Focus visible styles */
.chat-input:focus-visible {
    outline: none;
}

.emoji-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ============================================================================
   BOT @MENTION BADGES (inline in messages)
   ============================================================================ */

.bot-mention {
    display: inline;
    font-weight: 600;
    font-size: 0.875em;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: default;
}

.bot-mention-neuro {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.12);
}

.bot-mention-evil {
    color: #ff0066;
    background: rgba(255, 0, 102, 0.12);
}

/* ============================================================================
   BOT PROFILE DIALOG
   ============================================================================ */

.bot-profile-dialog .mud-dialog-content {
    padding: 0 !important;
    overflow: hidden;
}

.bot-profile-content {
    position: relative;
    overflow: hidden;
}

/* Banner */
.bot-profile-banner {
    height: 80px;
    position: relative;
    overflow: hidden;
}

.bot-profile-neuro .bot-profile-banner {
    background: linear-gradient(135deg, #003844 0%, #00647a 50%, #003844 100%);
}

.bot-profile-evil .bot-profile-banner {
    background: linear-gradient(135deg, #3d0019 0%, #7a002e 50%, #3d0019 100%);
}

.bot-profile-banner-glow {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.bot-profile-neuro .bot-profile-banner-glow {
    background: radial-gradient(circle at 50% 100%, rgba(0, 217, 255, 0.3), transparent 70%);
}

.bot-profile-evil .bot-profile-banner-glow {
    background: radial-gradient(circle at 50% 100%, rgba(255, 0, 102, 0.3), transparent 70%);
}

/* Avatar section */
.bot-profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.bot-profile-avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-profile-neuro .bot-profile-avatar-ring {
    background: linear-gradient(135deg, #00d9ff, #0099b8);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.bot-profile-evil .bot-profile-avatar-ring {
    background: linear-gradient(135deg, #ff0066, #b80047);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.3);
}

.bot-profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--theme-bg-primary, #0a0e14);
}

.bot-profile-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.bot-profile-bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bot-profile-role-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.bot-profile-neuro .bot-profile-role-badge {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
}

.bot-profile-evil .bot-profile-role-badge {
    background: rgba(255, 0, 102, 0.15);
    color: #ff0066;
}

/* Info section */
.bot-profile-info {
    text-align: center;
    padding: 12px 24px 0;
}

.bot-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.bot-profile-neuro .bot-profile-name {
    color: #00d9ff;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
}

.bot-profile-evil .bot-profile-name {
    color: #ff0066;
    text-shadow: 0 0 12px rgba(255, 0, 102, 0.3);
}

.bot-profile-tagline {
    font-size: var(--text-sm);
    color: var(--theme-text-muted, #6b7280);
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Disclaimer banner */
.bot-profile-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 20px 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--theme-text-muted, #6b7280);
    background: rgba(255, 180, 0, 0.06);
    border: 1px solid rgba(255, 180, 0, 0.15);
}

.bot-profile-disclaimer .mud-icon-root {
    color: #ffb400;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Detail items */
.bot-profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px;
}

.bot-profile-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bot-profile-detail-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.bot-profile-neuro .bot-profile-detail-icon {
    color: #00d9ff;
}

.bot-profile-evil .bot-profile-detail-icon {
    color: #ff0066;
}

.bot-profile-detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-text-muted, #6b7280);
    margin-bottom: 1px;
}

.bot-profile-detail-value {
    display: block;
    font-size: var(--text-sm);
    color: var(--theme-text-secondary, #9ca3af);
    line-height: 1.4;
}

.bot-profile-detail-value code {
    font-size: 0.8125rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
}

.bot-profile-neuro .bot-profile-detail-value code {
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
}

.bot-profile-evil .bot-profile-detail-value code {
    background: rgba(255, 0, 102, 0.1);
    color: #ff0066;
}

.bot-profile-close-btn {
    text-transform: none !important;
}

/* ============================================================================
   SONG SUGGESTION CARDS (Bot-generated song picks in chat)
   ============================================================================ */

.song-suggestion-card {
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0 4px 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: messageSlideIn 0.2s ease-out;
}

.song-suggestion-neuro {
    background: rgba(0, 217, 255, 0.04);
    border-left: 2px solid #00d9ff;
}

.song-suggestion-evil {
    background: rgba(255, 0, 102, 0.04);
    border-left: 2px solid #ff0066;
}

.song-suggestion-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.song-suggestion-neuro .song-suggestion-header .mud-icon-root {
    color: #00d9ff;
}

.song-suggestion-evil .song-suggestion-header .mud-icon-root {
    color: #ff0066;
}

.song-suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: default;
    margin-bottom: 2px;
    transition: background 0.15s ease;
}

.song-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
    .song-suggestion-card {
        margin-left: 8px;
    }
}
