.secure-line-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 340px;
    height: 450px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chat-header {
    background: rgba(0,0,0,0.4);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.chat-close:hover {
    color: var(--accent-red);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: url('https://www.transparenttextures.com/patterns/stardust.png'), var(--bg-dark);
}

.chat-system-msg {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin: 10px 0;
    opacity: 0.5;
}

.chat-msg-bubble {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.msg-me {
    align-self: flex-end;
}
.msg-me .msg-content {
    background: var(--accent-red);
    color: white;
    border-bottom-right-radius: 2px !important;
}
.msg-me .msg-time {
    text-align: right;
}

.msg-them {
    align-self: flex-start;
}
.msg-them .msg-content {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 2px !important;
}

.chat-input-area {
    padding: 12px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    border-color: var(--accent-red);
}

.chat-input-area button {
    background: var(--accent-red);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-input-area button:hover {
    box-shadow: 0 0 10px rgba(218,55,60,0.5);
    transform: scale(1.05);
}

@media(max-width: 768px) {
    .secure-line-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 9999;
    }
}
