/* ===== ЗАГРУЗКА ===== */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
    gap: 16px;
}
.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-purple), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid var(--neon-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.subtitle {
    color: #64748b;
    font-size: 14px;
}

/* ===== БЛОКИРОВКА ===== */
#blocked-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#blocked-overlay.show {
    display: flex;
}
.blocked-content {
    text-align: center;
    max-width: 320px;
    padding: 24px;
}
.blocked-icon {
    font-size: 56px !important;
    color: #ef4444;
    margin-bottom: 12px;
}
.blocked-btn {
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 16px;
    right: 16px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--bg-card);
    color: #e4edf5;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.toast-info { border-color: var(--neon-purple); }
.toast-success { border-color: var(--neon-green); }
.toast-error { border-color: #ef4444; }
.toast-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
}

/* ===== КОНТЕКСТНОЕ МЕНЮ ===== */
.context-menu {
    position: fixed;
    background: rgba(30, 35, 50, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    animation: contextMenuFade 0.15s ease;
}

@keyframes contextMenuFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4edf5;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.1s;
    user-select: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.context-menu-item:hover {
    background: rgba(139, 92, 246, 0.2);
}

.context-menu-item .material-icons {
    font-size: 20px;
    color: #8899b0;
}

.context-menu-item.danger .material-icons {
    color: #ef4444;
}

.context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 12px;
}