.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 30px var(--accent-glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.no-access-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.no-access-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.no-access-icon {
    font-size: 60px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.no-access-card h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-access-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.nav-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
    border-radius: 12px;
    margin-left: 8px;
    box-shadow: 0 0 15px var(--accent-glow);
    vertical-align: middle;
}



.support-chat-layout { display:grid; grid-template-columns:minmax(260px,340px) minmax(0,1fr); gap:16px; align-items:stretch; }
.support-chat-list-card,.support-chat-detail-card { max-width:none; margin:0; min-width:0; }
.support-chat-list { display:flex; flex-direction:column; gap:8px; margin-top:14px; max-height:72vh; overflow-y:auto; }
.support-chat-list-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; width:100%; padding:12px; text-align:left; background:var(--bg-secondary); border:1px solid var(--border-color); border-radius:10px; color:var(--text-primary); cursor:pointer; font:inherit; }
.support-chat-list-item:hover,.support-chat-list-item.active { border-color:var(--accent); background:var(--accent-dim); }
.support-chat-list-item strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-chat-state { font-size:11px; font-weight:700; }
.support-chat-state.open { color:#00ff88; }
.support-chat-state.closed { color:var(--text-muted); }
.support-chat-preview,.support-chat-list-meta { grid-column:1/-1; color:var(--text-muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-chat-heading { display:flex; flex-direction:column; gap:5px; padding-bottom:14px; border-bottom:1px solid var(--border-color); color:var(--text-secondary); font-size:12px; }
.support-chat-heading strong { color:var(--text-primary); font-size:16px; }
.support-chat-messages { display:flex; flex-direction:column; gap:10px; min-height:420px; max-height:calc(72vh - 60px); overflow-y:auto; padding:16px 4px 4px; }
.support-chat-message { max-width:min(82%,680px); padding:10px 13px; border-radius:14px; border:1px solid var(--border-color); background:var(--bg-secondary); }
.support-chat-message.from-user { align-self:flex-start; border-top-left-radius:4px; }
.support-chat-message.from-admin { align-self:flex-end; border-color:rgba(155,89,182,.55); background:var(--accent-dim); border-top-right-radius:4px; }
.support-chat-author { font-size:11px; font-weight:700; color:var(--accent-hover); margin-bottom:4px; }
.support-chat-body { color:var(--text-primary); font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.support-chat-time { display:block; text-align:right; color:var(--text-muted); font-size:10px; margin-top:6px; }
.support-chat-empty { padding:22px 10px; color:var(--text-muted); font-size:13px; text-align:center; }
.support-chat-empty.error { color:#ff667d; }
@media (max-width:900px) { .support-chat-layout { grid-template-columns:1fr; } .support-chat-list { max-height:35vh; } .support-chat-messages { min-height:300px; max-height:50vh; } }
@media (max-width:768px) { .nav-badge { font-size:8px; padding:2px 6px; margin-left:4px; } .no-access-card { padding:30px 20px; } .no-access-icon { font-size:48px; } .no-access-card h1 { font-size:22px; } .support-chat-message { max-width:94%; } .support-chat-heading strong { font-size:14px; } }
