/* ============================================================
   SHADOWSKINGS — UNIVERSAL CHAT PANEL (HEROES ARCANE THEME)
   ============================================================ */

.chat-popup {
    position: fixed;
    width: 600px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 14, 0.92);
    border: 2px solid rgba(120, 0, 255, 0.6);
    box-shadow: 0 0 25px rgba(120, 0, 255, 0.7);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    backdrop-filter: blur(6px);
    color: #e6dfff;
}

/* ============================================================
   HEADER — HEROES STYLE
   ============================================================ */

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(20, 10, 40, 0.6);
    border-bottom: 2px solid rgba(120, 0, 255, 0.5);
    box-shadow: 0 0 12px rgba(120, 0, 255, 0.4);
}

.chat-title {
    font-size: 22px;
    font-weight: 600;
    color: #f3eaff;
    text-shadow: 0 0 8px rgba(120, 0, 255, 0.8);
}

.chat-close-btn {
    background: rgba(40, 20, 60, 0.6);
    border: 1px solid rgba(120, 0, 255, 0.5);
    color: #d8caff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-close-btn:hover {
    background: rgba(120, 0, 255, 0.8);
    color: #fff;
    box-shadow: 0 0 10px rgba(120, 0, 255, 0.9);
}

/* ============================================================
   MESSAGE AREA — HEROES STYLE
   ============================================================ */

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: rgba(30, 15, 55, 0.55);
    border-top: 1px solid rgba(120, 0, 255, 0.4);
    border-bottom: 1px solid rgba(120, 0, 255, 0.4);
    box-shadow: inset 0 0 12px rgba(120, 0, 255, 0.3);
    color: #e6dfff;
    font-size: 15px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(40, 20, 60, 0.6);
    border-left: 3px solid rgba(120, 0, 255, 0.8);
    border-radius: 6px;
    color: #f3eaff;
    box-shadow: 0 0 8px rgba(120, 0, 255, 0.4);
}

/* ============================================================
   INPUT AREA — HEROES STYLE
   ============================================================ */

.chat-input-container {
    display: flex;
    padding: 14px;
    background: rgba(20, 10, 40, 0.6);
    border-top: 2px solid rgba(120, 0, 255, 0.5);
}

.chat-input {
    flex: 1;
    padding: 10px;
    background: rgba(30, 15, 55, 0.55);
    color: #e6dfff;
    border: 1px solid rgba(120, 0, 255, 0.5);
    border-radius: 6px;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(180, 120, 255, 0.9);
    box-shadow: 0 0 10px rgba(180, 120, 255, 0.5);
}

.chat-send-btn {
    margin-left: 12px;
    padding: 10px 18px;
    background: rgba(120, 0, 255, 0.8);
    border: 1px solid rgba(180, 120, 255, 0.9);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-send-btn:hover {
    background: rgba(150, 40, 255, 0.9);
    box-shadow: 0 0 12px rgba(180, 120, 255, 0.9);
}

/* ============================================================
   PERMISSION LOCKOUT — HEROES STYLE
   ============================================================ */

.chat-no-permission {
    padding: 25px;
    text-align: center;
    color: #ff8a8a;
    font-size: 18px;
    font-weight: 600;
    background: rgba(40, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 60, 60, 0.5);
    border-radius: 0 0 10px 10px;
}
