body {
    background-color: #0a0a0a;
    color: #e5e5e5;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}
.shadow-neon {
    box-shadow: 0 0 15px rgba(0, 255, 148, 0.2);
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
#cancel-reply-btn {
    font-size: 1.25rem;
    line-height: 1;
}
.reply-quote-container {
    display: none; 
}
.msg-item.is-me {
    align-self: flex-end;
    flex-direction: row-reverse;
    --tw-space-x-reverse: 1;
}
.is-me .chain-line {
    left: auto; 
    right: 1.15rem; 
}
.is-me .reply-btn {
    right: auto; 
    left: 3rem;  
}
.is-me .react-btn {
    right: auto; 
    left: 0.5rem;
}
.is-me .reaction-palette {
    right: auto; 
    left: 0.5rem; 
}
.chain-list li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chain-list a {
    display: block;
    padding: 0.75rem 1rem; 
    font-size: 0.875rem; 
    color: #9ca3af; 
    transition: background-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}
.chain-list a:hover {
    background-color: #1f2937; 
}
.chain-list a.active {
    background-color: rgba(0, 255, 148, 0.1); 
    color: #00FF94; 
    font-weight: 700; 
}
#chain-sidebar.is-open {
    transform: translateX(0);
}
.is-me .edit-btn {
    right: auto;
    left: 5.5rem; 
}
.is-me .delete-btn {
    right: auto;
    left: 8rem; 
}
.is-me .delete-btn:hover {
    color: #ff4444; 
}
@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}
.animate-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}
.sidebar-tab {
    color: #9ca3af; 
    border-bottom: 2px solid transparent;
    margin-bottom: -1px; 
    width: 33.33%;
}
.sidebar-tab:hover {
    background-color: #1f2937; 
}
.sidebar-tab.active {
    color: #00FF94; 
    background-color: #111111; 
    border-bottom-color: #00FF94;
}
.chain-list a.chain-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}
.chain-list-item .chain-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    margin-right: 8px;
}
.chain-list-item .peer-count {
    font-size: 0.7rem; 
    font-family: 'JetBrains Mono', monospace;
    color: #6b7280;
    background-color: #262626; 
    padding: 2px 6px;
    border-radius: 9999px; 
    flex-shrink: 0; 
}
.chain-list-item .peer-count.active {
    color: #00FF94; 
    background-color: rgba(0, 255, 148, 0.1); 
    font-weight: 700;
}
.chain-list-delete-btn {
    display: block;
    padding: 0.75rem 1rem;
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.chain-list-delete-btn:hover {
    color: #ff4444;
}

.msg-item .username {
    cursor: copy; 
}

.chain-list-delete-btn.is-remove:hover {

    color: #9ca3af;
}

@media (max-width: 767px) {
    
    .msg-item {
        margin-top: 1rem; 
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
   
    .bubble {
        padding: 0.75rem 1rem;
        max-width: 95%; 
    }
    
    
    .username-timestamp-row {
        margin-bottom: 0.5rem;
        padding-right: 4rem; 
    }
    

    .reply-btn {
        right: 2.5rem; 
        padding: 0.25rem;
    }
    .react-btn {
        right: 0.5rem;
        padding: 0.25rem;
    }
    

    .is-me .reply-btn {
        left: 2.5rem;
        right: auto;
    }
    .is-me .react-btn {
        left: 0.5rem;
        right: auto;
    }
    

    .edit-btn, .delete-btn, .pin-btn {
        display: none !important; 
    }
}

@media (max-width: 767px) {
    .msg-item {
        margin-top: 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .bubble {
        padding: 0.75rem 1rem;
        max-width: 95%;
      
        padding-top: 3rem; 
    }

    .username-timestamp-row {
        margin-bottom: 0.5rem;
       
        padding-right: 0; 
    }

    .msg-item .edit-btn,
    .msg-item .delete-btn,
    .msg-item .pin-btn {
        display: block !important;
    }

    .bubble .react-btn  { top: 0.5rem; right: 0.5rem; }
    .bubble .reply-btn  { top: 0.5rem; right: 2.75rem; }
    .bubble .pin-btn    { top: 0.5rem; right: 5rem; }
    

    .bubble .edit-btn   { top: 0.5rem; right: 7.25rem; }
    .bubble .delete-btn { top: 0.5rem; right: 9.5rem; }


    .is-me .bubble .react-btn  { left: 0.5rem; right: auto; }
    .is-me .bubble .reply-btn  { left: 2.75rem; right: auto; }
    .is-me .bubble .pin-btn    { left: 5rem; right: auto; }
    .is-me .bubble .edit-btn   { left: 7.25rem; right: auto; }
    .is-me .bubble .delete-btn { left: 9.5rem; right: auto; }
}

.cf-turnstile {
    width: 100% !important;
    min-width: 280px !important;
}

#temp-turnstile-widget {
    width: 100% !important;
    min-width: 280px !important;
    display: flex !important;
    justify-content: center !important;
}

#temp-turnstile-container {
    width: 100% !important;
    min-width: 280px !important;
    display: flex !important;
    justify-content: center !important;
}

